pmaports/device/testing/firmware-asus-x00td/APKBUILD

43 lines
1.5 KiB
Text
Raw Normal View History

# Maintainer: Aboothahir U <aboothahirpkd@gmail.com>
pkgname=firmware-asus-x00td
pkgver=0.2
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
cc7c614c6aa0cbbb0ad2eed93fa14ade8255961e0e4da2264e90bfbee9b6bcb83b2025c4781eddaed3bbc0533463c6f144ce1d645e3d873654dcce20df59811a firmware.files
"