pkgname=firmware-huawei-y635 pkgver=1 pkgrel=1 pkgdesc="Firmware for Huawei Y635" url="https://postmarketos.org" subpackages="$pkgname-wcnss-nv:wcnss_nv" arch="aarch64" license="proprietary" options="!check !strip !archcheck !tracedeps pmb:cross-native" source="$pkgname-WCNSS_qcom_wlan_nv.bin.base64::https://pastebin.com/raw/yYNgH3PW" _fwdir="/lib/firmware/postmarketos" build() { base64 -d $pkgname-WCNSS_qcom_wlan_nv.bin.base64 > WCNSS_qcom_wlan_nv.bin } package() { # parent package is empty mkdir -p "$pkgdir" } wcnss_nv() { pkgdesc="Huawei Y635 WiFi/BT firmware configuration" install -Dm644 "$srcdir"/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir"/wlan/prima } sha512sums=" c7c59dba8dcb527963a2710e4cf21937f0c8884f0befa1002df29bccc252d03deb79d097eb87441d73a2e889426eb3e98d96ab68fae525a317e71a4e938103eb firmware-huawei-y635-WCNSS_qcom_wlan_nv.bin.base64 "