firmware/firmware-huawei-y530: fix linting issues (!873)

This commit is contained in:
Bart Ribbers 2020-01-09 18:47:19 +01:00 committed by Daniele Debernardi
parent d541ffc2e8
commit df5eb65a1c
No known key found for this signature in database
GPG key ID: 5782FCF5DAE9AF60

View file

@ -1,34 +1,30 @@
# Contributor: Daniele Debernardi <drebrez@gmail.com>
pkgname=firmware-huawei-y530
pkgver=1
pkgrel=2
pkgrel=3
_commit="86bf384e1c37ee328988b9ec8769f6d321f931de"
pkgdesc="Firmware files for Huawei Ascend Y530"
url="https://postmarketos.org"
arch="armv7"
license="proprietary"
depends="wcnss-wlan"
options="!strip !check !archcheck"
# Source
_commit="86bf384e1c37ee328988b9ec8769f6d321f931de"
_url="https://github.com/drebrez/vendor_huawei_y530"
source="$pkgname-$_commit.tar.gz::$_url/archive/${_commit}.tar.gz"
source="$pkgname-$_commit.tar.gz::https://github.com/drebrez/vendor_huawei_y530/archive/$_commit.tar.gz"
options="!strip !check !archcheck !spdx"
builddir="$srcdir/vendor_huawei_y530-$_commit"
package() {
cd "$srcdir/vendor_huawei_y530-$_commit/wifi"
# /lib/firmware/postmarketos
_files="wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06 wcnss.b07
wcnss.b08 wcnss.b09 wcnss.mdt"
for _i in $_files; do
install -D -m644 "$_i" "$pkgdir/lib/firmware/postmarketos/$_i"
install -D -m644 wifi/"$_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_hw_wlan_nv.bin"
for _i in $_files; do
install -D -m644 "wlan/prima/$_i" \
"$pkgdir/lib/firmware/postmarketos/wlan/prima/$_i"
install -D -m644 wifi/wlan/prima/"$_i" \
"$pkgdir"/lib/firmware/postmarketos/wlan/prima/"$_i"
done
}