2022-10-23 23:16:25 +00:00
|
|
|
# Maintainer: Joel Selvaraj <joelselvaraj.oss@gmail.com>
|
2020-04-13 19:56:53 +00:00
|
|
|
|
|
|
|
pkgname=firmware-xiaomi-beryllium
|
2024-04-14 11:39:26 +00:00
|
|
|
pkgver=8
|
2023-08-17 09:20:54 +00:00
|
|
|
pkgrel=0
|
2021-02-17 10:02:14 +00:00
|
|
|
pkgdesc="Firmware for Xiaomi Poco F1"
|
|
|
|
url="https://gitlab.com/sdm845-mainline/firmware-xiaomi-beryllium"
|
2020-04-13 19:56:53 +00:00
|
|
|
arch="aarch64"
|
2022-03-17 07:33:15 +00:00
|
|
|
depends="linux-firmware-qcom linux-firmware-qca linux-firmware-ath10k"
|
2020-04-13 19:56:53 +00:00
|
|
|
license="proprietary"
|
2024-04-14 11:39:26 +00:00
|
|
|
options="!strip !check !archcheck !tracedeps textrels pmb:cross-native"
|
2020-04-13 19:56:53 +00:00
|
|
|
|
2024-04-14 11:39:26 +00:00
|
|
|
_commit="5a797a180ddee8edabd5e6c9d0d3566f257ec4c3"
|
2020-04-13 19:56:53 +00:00
|
|
|
|
2021-02-17 10:02:14 +00:00
|
|
|
source="$pkgname.tar.gz::$url/-/archive/$_commit/$pkgname-$_commit.tar.gz
|
2023-08-17 09:20:54 +00:00
|
|
|
firmware.files
|
2024-04-14 11:39:26 +00:00
|
|
|
sensor.files
|
|
|
|
"
|
|
|
|
|
|
|
|
subpackages="$pkgname-sensors:firmware_sensors"
|
2020-04-13 19:56:53 +00:00
|
|
|
|
|
|
|
package() {
|
2021-02-17 10:02:14 +00:00
|
|
|
while IFS="" read -r _i || [ -n "$_i" ]; do
|
|
|
|
[ ! -d $(dirname $_i) ] && mkdir -p $(dirname $_i)
|
2024-04-14 11:39:26 +00:00
|
|
|
install -Dm644 "$srcdir/$pkgname-$_commit/$_i" "$pkgdir/$_i"
|
2021-02-17 10:02:14 +00:00
|
|
|
done < "$srcdir/firmware.files"
|
2024-04-14 11:39:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
firmware_sensors() {
|
|
|
|
pkgdesc="Files to be included to add sensor support"
|
|
|
|
depends="$pkgname"
|
|
|
|
install_if="$pkgname-nonfree-firmware"
|
|
|
|
mkdir "$subpkgdir"
|
2023-08-17 09:20:54 +00:00
|
|
|
|
2024-04-14 11:39:26 +00:00
|
|
|
while IFS="" read -r _i || [ -n "$_i" ]; do
|
|
|
|
[ ! -d $(dirname $_i) ] && mkdir -p $(dirname $_i)
|
|
|
|
install -Dm644 "$srcdir/$pkgname-$_commit/$_i" "$pkgdir/$_i"
|
|
|
|
done < "$srcdir/sensor.files"
|
2020-04-13 19:56:53 +00:00
|
|
|
}
|
|
|
|
|
2021-07-25 02:29:03 +00:00
|
|
|
sha512sums="
|
2024-04-14 11:39:26 +00:00
|
|
|
babe3ec1abde42f21f1943357a28548cb89c3df4f860a1c3bdef22782e38b77ff6e1fcf6dce44de4ba771da4c61bfad97df25520ff2b466288a081fd7a13cf7e firmware-xiaomi-beryllium.tar.gz
|
|
|
|
d41eb4cfd7b1fa932a6471162e1edb15f637be9b3b66648827916d5f3a03ebcae24b158b574916070a6d8a22cd8c0ac1bbcbafab8de6aba3b4932fa6bfb23bb1 firmware.files
|
|
|
|
445600490c81091ec51b0ce50297e960f214d9848242e8dc35689ce40e5a7469e8d495d64b61e1a89d38aa6695cbd012f7f1cdd8c5e94cce0c1c64f2c833dba3 sensor.files
|
2021-07-25 02:29:03 +00:00
|
|
|
"
|