pmaports/device/testing/firmware-ark-peach/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

29 lines
886 B
Text

pkgname=firmware-ark-peach
pkgver=1
pkgrel=1
pkgdesc="Firmware for ARK Benefit A3"
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/F2zDaaqf"
_fwdir="/lib/firmware/postmarketos"
build() {
base64 -d $pkgname-WCNSS_qcom_wlan_nv.bin.base64 > WCNSS_qcom_wlan_nv.bin
}
package() {
mkdir -p "$pkgdir"
}
wcnss_nv() {
pkgdesc="ARK Benefit A3 WiFi/BT firmware configuration"
replaces="firmware-ark-peach-wcnss"
install -Dm644 "$srcdir"/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir"/wlan/prima
}
sha512sums="
214a1e9ec215f4cdf25fee73b2cec446815131b1de283c887a30ea41deffd54c78e7d56cc7f895c5832d568eb336ec8c5ebc114f8a0d331876f940276741c082 firmware-ark-peach-WCNSS_qcom_wlan_nv.bin.base64
"