pmaports/firmware/firmware-huawei-y530/APKBUILD
Oliver Smith 771612344d
other device related packages: don't use noarch
It does not make sense to build most of them for x86_64 for example.
2018-11-27 07:47:11 +01:00

35 lines
1.1 KiB
Text

pkgname=firmware-huawei-y530
pkgver=1
pkgrel=1
pkgdesc="Firmware files for Huawei Ascend Y530"
url="https://postmarketos.org"
arch="armhf"
license="proprietary"
depends="wcnss-wlan"
options="!strip !check !archcheck"
# Source
_commit="86bf384e1c37ee328988b9ec8769f6d321f931de"
_url="https://github.com/drebrez/vendor_huawei_y530"
source="$pkgname-$_commit.tar.gz::$_url/archive/${_commit}.tar.gz"
package() {
cd "$srcdir/vendor_huawei_y530-$_commit/wifi"
# /lib/firmware/postmarketos
_files="wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06 wcnss.b07
wcnss.b08 wcnss.b09 wcnss.mdt"
for _i in $_files; do
install -D -m644 "$_i" "$pkgdir/lib/firmware/postmarketos/$_i"
done
# /lib/firmware/postmarketos/wlan/prima
_files="WCNSS_cfg.dat WCNSS_qcom_cfg.ini WCNSS_qcom_wlan_nv.bin
WCNSS_hw_wlan_nv.bin"
for _i in $_files; do
install -D -m644 "wlan/prima/$_i" \
"$pkgdir/lib/firmware/postmarketos/wlan/prima/$_i"
done
}
sha512sums="b21d719ad6abe178ef1e846d13a8fad24fa83b191e66dd041953409aa95f8f9be620c507ea9e9fd12b847deafd66d0b7986f6cb9c5c4e0fb272a7fcf88eb15cc firmware-huawei-y530-86bf384e1c37ee328988b9ec8769f6d321f931de.tar.gz"