2020-01-06 17:41:58 +00:00
|
|
|
# Contributor: Nikolay <nikolay0054@gmail.com>
|
2018-04-25 09:40:16 +00:00
|
|
|
pkgname=firmware-xiaomi-mido
|
|
|
|
pkgver=1
|
2020-01-06 17:41:58 +00:00
|
|
|
pkgrel=2
|
2018-04-25 09:40:16 +00:00
|
|
|
pkgdesc="Firmware files for Xiaomi Redmi Note 4"
|
2018-06-30 07:00:48 +00:00
|
|
|
url="https://postmarketos.org"
|
2018-11-07 07:43:32 +00:00
|
|
|
arch="aarch64"
|
2018-04-25 09:40:16 +00:00
|
|
|
license="proprietary"
|
|
|
|
depends="wcnss-wlan"
|
2020-01-06 17:41:58 +00:00
|
|
|
options="!strip !check !archcheck !spdx"
|
2018-04-25 09:40:16 +00:00
|
|
|
|
|
|
|
# Source
|
|
|
|
_files="wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06
|
|
|
|
wcnss.b09 wcnss.b10 wcnss.b11 wcnss.b12 wcnss.mdt"
|
|
|
|
_files_prima="WCNSS_wlan_dictionary.dat WCNSS_qcom_cfg.ini WCNSS_qcom_wlan_nv.bin"
|
|
|
|
_commit="9a07efe4fcf2d13bcdb4490ea0cb08ad78c56e0b"
|
2020-01-06 17:41:58 +00:00
|
|
|
source="$pkgname-$_commit.tar.gz::https://github.com/Nikolay0054/vendor_xiaomi_mido/archive/$_commit.tar.gz"
|
|
|
|
builddir="$srcdir/vendor_xiaomi_mido-$_commit"
|
2018-04-25 09:40:16 +00:00
|
|
|
|
2020-01-06 17:41:58 +00:00
|
|
|
package() {
|
2018-04-25 09:40:16 +00:00
|
|
|
# /lib/firmware/postmarketos
|
|
|
|
for _i in $_files; do
|
|
|
|
install -D -m644 "$_i" \
|
2020-01-06 17:41:58 +00:00
|
|
|
"$pkgdir"/lib/firmware/postmarketos/"$_i"
|
2018-04-25 09:40:16 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
# /lib/firmware/postmarketos/wlan/prima
|
|
|
|
for _i in $_files_prima; do
|
2020-01-06 17:41:58 +00:00
|
|
|
install -D -m644 wlan/prima/"$_i" \
|
|
|
|
"$pkgdir"/lib/firmware/postmarketos/wlan/prima/"$_i"
|
2018-04-25 09:40:16 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="a9a3a5d717e6cef0407ab964f7a85a530d6839e51ae95ae11e9f6cc9a191852622415dad1f241377d607b4b23f05db0e6d017da1c2c2bcee0d28f6d450a9ffe6 firmware-xiaomi-mido-9a07efe4fcf2d13bcdb4490ea0cb08ad78c56e0b.tar.gz"
|