pmaports/device/testing/firmware-samsung-a6lte/APKBUILD

35 lines
1.5 KiB
Text
Raw Normal View History

pkgname=firmware-samsung-a6lte
pkgver=2
pkgrel=0
pkgdesc="Firmware files for Samsung Galaxy A6 (2018)"
url="https://github.com/fw-dumps/samsung_a6lte_dump"
arch="aarch64"
license="proprietary"
options="!strip !check !archcheck !spdx !tracedeps pmb:cross-native"
depends="linux-firmware-brcm"
# Source
_commit="2ea1f7e1dfbe56d6ca085c9eb4061aca8909172c"
builddir="$srcdir/samsung_a6lte_dump-$_commit"
_raw_wifi_path="$url/raw/$_commit/vendor/etc/wifi"
_install_wifi_path="/lib/firmware/postmarketos/wifi"
source="
nvram.txt_c5::$_raw_wifi_path/nvram.txt_c5
"
package() {
mkdir -p "$pkgdir$_install_wifi_path"
ln -s /lib/firmware/brcm/brcmfmac43456-sdio.bin "$pkgdir$_install_wifi_path/bcmdhd_apsta.bin_c5"
ln -s /lib/firmware/brcm/brcmfmac43456-sdio.bin "$pkgdir$_install_wifi_path/bcmdhd_apsta.bin_c5_blob"
ln -s /lib/firmware/brcm/brcmfmac43456-sdio.clm_blob "$pkgdir$_install_wifi_path/bcmdhd_clm.blob"
ln -s /lib/firmware/brcm/brcmfmac43456-sdio.bin "$pkgdir$_install_wifi_path/bcmdhd_mfg.bin_c5"
ln -s /lib/firmware/brcm/brcmfmac43456-sdio.bin "$pkgdir$_install_wifi_path/bcmdhd_mfg.bin_c5_blob"
ln -s /lib/firmware/brcm/brcmfmac43456-sdio.bin "$pkgdir$_install_wifi_path/bcmdhd_sta.bin_c5"
ln -s /lib/firmware/brcm/brcmfmac43456-sdio.bin "$pkgdir$_install_wifi_path/bcmdhd_sta.bin_c5_blob"
install -Dm644 "$srcdir/nvram.txt_c5" -t "$pkgdir$_install_wifi_path"
}
sha512sums="
b9e1e695cb01497400c0f0c3ccd0e7815a10258775bd89edda3ce89926cb1f9e4172b068553bce7120766ff673e265a9cbe54f94cca0f72496a04a216f4c9a0f nvram.txt_c5
"