pmaports/device/testing/firmware-lenovo-karate/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

31 lines
1.2 KiB
Text

pkgname=firmware-lenovo-karate
pkgver=1
pkgrel=1
_commit="5ce975ce101adbd775002dc0bb73ba9ddbbd717f"
pkgdesc="Firmware files for Lenovo K6 Power"
url="https://postmarketos.org"
arch="aarch64"
license="proprietary"
depends="wcnss-wlan"
options="!strip !check !archcheck !spdx !tracedeps pmb:cross-native"
source="$pkgname-$_commit.tar.gz::https://github.com/drebrez/vendor_lenovo_karate/archive/$_commit.tar.gz"
builddir="$srcdir/vendor_lenovo_karate-$_commit"
package() {
# /lib/firmware/postmarketos
_files="wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06 wcnss.b09
wcnss.b10 wcnss.b11 wcnss.b12 wcnss.mdt"
for _i in $_files; do
install -Dm644 "$_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_wlan_dictionary.dat"
for _i in $_files; do
install -Dm644 wlan/prima/"$_i" \
"$pkgdir"/lib/firmware/postmarketos/wlan/prima/"$_i"
done
}
sha512sums="a3aacdfcf2ce79558587a36dcd8d964e2b7374fb44a4600e9d1e6d13db92ed357f2761c5c0a9ce45e3038ce9ed46e599cec7c3ae5bce8178b6eb90a0907f7ec1 firmware-lenovo-karate-5ce975ce101adbd775002dc0bb73ba9ddbbd717f.tar.gz"