36 lines
1.3 KiB
Text
36 lines
1.3 KiB
Text
pkgname=firmware-xiaomi-ysl
|
|
pkgver=1
|
|
pkgrel=0
|
|
pkgdesc="Firmware files for Xiaomi Redmi S2/Y2"
|
|
url="https://gitlab.com/trabarni/$pkgname"
|
|
arch="aarch64"
|
|
depends="linux-firmware-qcom firmware-xiaomi-ysl-initramfs"
|
|
license="proprietary"
|
|
options="!strip !check !archcheck !spdx !tracedeps pmb:cross-native"
|
|
|
|
_commit="bb62cf818d4224850cd033d085e29aa1b3defc59"
|
|
|
|
source="$pkgname.tar.gz::$url/-/archive/$_commit/$pkgname-$_commit.tar.gz
|
|
firmware.files
|
|
30-gpu-firmware.files"
|
|
subpackages="$pkgname-initramfs:firmware_initramfs"
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$_commit/"
|
|
while IFS="" read -r _i || [ -n "$_i" ]; do
|
|
[ ! -d $(dirname $_i) ] && mkdir -p $(dirname $_i)
|
|
install -Dm644 $_i "$pkgdir/$_i"
|
|
done < "$srcdir/firmware.files"
|
|
}
|
|
|
|
firmware_initramfs() {
|
|
mkdir "$subpkgdir"
|
|
install -Dm644 "$srcdir"/30-gpu-firmware.files -t \
|
|
"$subpkgdir"/usr/share/mkinitfs/files
|
|
}
|
|
|
|
sha512sums="
|
|
92c761f63307b7c53ff2d98843cf6d3b3f13e89c2b87b61a4d53b8a0b6e96031d35ebc34d913f2ae96a3736a6bae65a2667e4caa36a98087e86f57270e9f7c8c firmware-xiaomi-ysl.tar.gz
|
|
d43fae933bb12e3879588e96f604be0534be5455bb9edbea3c9cf96bcffbce44abae27de3f40a118536254ca85faeb0fecf390f8f6ae60ca9d06887ac32a7462 firmware.files
|
|
302c0bec754bb79ef561c1a8d4ff34ba52b904c853bce6a15a79ba7b5b7a3d02c1c75bbe86d59be7b608a6dc744dd3e3c638eaa4539c53d20fa55fa5ea397d74 30-gpu-firmware.files
|
|
"
|