pmaports/device/testing/firmware-huawei-kiwi/APKBUILD
Johannes Marbach 95d375879c
treewide: firmware: use pmb:cross-native/!tracdeps (MR 2468)
Add pmb:cross-native/!tracedeps to applicable firmware packages and
secure both with a test.

This sets the pmb:cross-native and !tracedeps options on all firmware-*
packages that are compatible with the native compilation method. A unit
test ensures the presence of both options while maintaining a list of
exempted packages.

Fixes: #718
[ci:ignore-count] [ci:skip-vercheck] [ci:skip-build]
2021-09-19 18:57:36 +02:00

30 lines
1,021 B
Text

pkgname=firmware-huawei-kiwi
pkgver=1
pkgrel=0
pkgdesc="Firmware for Huawei Honor 5X"
url="https://git.sr.ht/~bo41/firmware-huawei-kiwi"
arch="aarch64"
license="proprietary"
options="!check !strip !archcheck !tracedeps pmb:cross-native"
# Sources
_commit="2a4db2a026568abfaf342211e9f3d63ac044a9d9"
source="$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz"
_fwdir="/lib/firmware/postmarketos"
builddir="$srcdir/$pkgname-$_commit"
package() {
# parent package is empty
mkdir -p "$pkgdir"
pkgdesc="Huawei Kiwi Modem/GPU/WiFi/BT/Video firmware"
install -Dm644 mba.mbn -t "$pkgdir/$_fwdir"
install -Dm644 modem.* -t "$pkgdir/$_fwdir"
install -Dm644 venus.* -t "$pkgdir/$_fwdir"/qcom/venus-1.8
install -Dm644 wcnss.* -t "$pkgdir/$_fwdir"
install -Dm644 WCNSS_* -t "$pkgdir/$_fwdir"/wlan/prima
}
sha512sums="a5aa89b37ff2e6ac5e8808cf6be97d7850e0d52c7654abf6c044de54c42c737a0b4242c439856dd56c4c5f2721b79941b604ac5a42506aec8020283c446301d4 firmware-huawei-kiwi-2a4db2a026568abfaf342211e9f3d63ac044a9d9.tar.gz"