pmaports/device/testing/firmware-asus-x00td/APKBUILD
iAboothahir 4a8a890148
firmware-asus-x00td: add firmware for GPU, WiFi, Bluetooth, ADSP, etc. (MR 3579)
Signed-off-by: iAboothahir <aboothahirpkd@gmail.com>
2022-10-24 13:25:04 +03:00

42 lines
1.5 KiB
Text

# Maintainer: Aboothahir U <aboothahirpkd@gmail.com>
pkgname=firmware-asus-x00td
pkgver=0.1
pkgrel=0
pkgdesc="Firmware for Asus Zenfone Max Pro M1"
url="https://github.com/iAboothahir/firmware-mainline-asus-x00td"
arch="aarch64"
license="proprietary"
options="!strip !check !archcheck !tracedeps pmb:cross-native"
_commit="fc04565dbadd9031602efd545fda6a3fa7694848"
source="
$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz
30-gpu-firmware.files
firmware.files"
subpackages="$pkgname-initramfs:firmware_initramfs"
builddir="$srcdir/firmware-mainline-asus-x00td-$_commit"
package() {
while IFS="" read -r fw; do
install -Dm644 "$fw" "$pkgdir/lib/firmware/$fw"
done < "$srcdir"/firmware.files
}
firmware_initramfs() {
pkgdesc="Files to be included in the initramfs to support osk-sdl"
depends="$pkgname mesa-egl mesa-gbm"
install_if="$pkgname"
install -Dm644 "$srcdir"/30-gpu-firmware.files \
"$subpkgdir"/etc/postmarketos-mkinitfs/files/30-gpu-firmware.files
}
sha512sums="
17737194fbd55ff0fa8661f344a288e5895fcf135e58daf427821fca45b1cc2b019aac51d9264802e047a488affc0074c76361c295e8b198299d74dff10dd9fc firmware-asus-x00td-fc04565dbadd9031602efd545fda6a3fa7694848.tar.gz
f4a81bc3b5fbcac001c6583f78a26b0e11787c3e2d423a72b6db1fbfab69a37f095ed303dfbcf0d6050864dbec9fcd977b9c827e4ba79e86c45491d238ea6c36 30-gpu-firmware.files
8642b68916f054db6be434df5ce13031507f9e56bc552c375c85fb3e08949cb0751bb9221a2a4a6d16db7d036eb77524e1b6e856dd2ba6ddde4738e51d07d7f4 firmware.files
"