pmaports/device/testing/firmware-huawei-y635/APKBUILD
Raymond Hackley 6157a01f0f
firmware: use build() instead of unpack() (MR 4493)
Some firmware packages has only a WCNSS config file, which is decoded
from base64 uploaded to Pastebin, and there is nothing to unpack.

[ci:ignore-count]
[ci:skip-build]: already built successfully in CI
2023-10-18 17:54:42 +02:00

30 lines
875 B
Text

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
"