firmware/firmware-xiaomi-santoni: fix linting issues (!873)

This commit is contained in:
Bart Ribbers 2020-01-06 18:54:41 +01:00 committed by Daniele Debernardi
parent ef1fa26075
commit a406acfe53
No known key found for this signature in database
GPG key ID: 5782FCF5DAE9AF60

View file

@ -1,11 +1,13 @@
# Contributor: Danct12 <danct12@disroot.org>
pkgname=firmware-xiaomi-santoni
pkgver=1
pkgrel=3
pkgrel=4
_commit="926d2ffbcb572ede8ad5942acea69175908afbb7"
pkgdesc="Firmware files for Xiaomi Redmi 4X"
url="https://postmarketos.org"
arch="aarch64"
license="proprietary"
options="!strip !check !archcheck"
options="!strip !check !archcheck !spdx"
# Source
_files="wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06
@ -14,21 +16,20 @@ _files="wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06
adsp.b06 adsp.b07 adsp.b08 adsp.b09 adsp.b10 adsp.b11
adsp.b12 adsp.b13 adsp.b14 adsp.mdt"
_files_prima="WCNSS_wlan_dictionary.dat WCNSS_qcom_cfg.ini WCNSS_qcom_wlan_nv.bin"
_commit="926d2ffbcb572ede8ad5942acea69175908afbb7"
source="$pkgname-$_commit.tar.gz::https://github.com/Danct12/vendor_xiaomi_santoni/archive/${_commit}.tar.gz"
package() {
cd "$srcdir/vendor_xiaomi_santoni-${_commit}"
source="$pkgname-$_commit.tar.gz::https://github.com/Danct12/vendor_xiaomi_santoni/archive/$_commit.tar.gz"
builddir="$srcdir/vendor_xiaomi_santoni-$_commit"
package() {
# /lib/firmware/postmarketos
for _i in $_files; do
install -D -m644 "$_i" \
"$pkgdir/lib/firmware/postmarketos/$_i"
"$pkgdir"/lib/firmware/postmarketos/"$_i"
done
# /lib/firmware/postmarketos/wlan/prima
for _i in $_files_prima; do
install -D -m644 "wlan/prima/$_i" \
"$pkgdir/lib/firmware/postmarketos/wlan/prima/$_i"
install -D -m644 wlan/prima/"$_i" \
"$pkgdir"/lib/firmware/postmarketos/wlan/prima/"$_i"
done
}