pmaports/device/testing/device-beelink-gt1/APKBUILD

57 lines
1.7 KiB
Text
Raw Normal View History

# Reference: <https://postmarketos.org/devicepkg>
# Maintainer:
pkgname=device-beelink-gt1
pkgver=1
pkgrel=6
pkgdesc="Beelink gt1 (Ultimate)"
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base u-boot-beelink-gt1 soc-amlogic-s905"
makedepends="devicepkg-dev"
subpackages="
$pkgname-kernel-alpine:kernel_alpine
$pkgname-kernel-amlogic:kernel_amlogic
$pkgname-nonfree-firmware:nonfree_firmware
"
source="
asound.state
deviceinfo modules-initfs.alpine modules-initfs.amlogic"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
install -D -m644 "$srcdir"/asound.state \
"$pkgdir"/var/lib/alsa/asound.state
}
kernel_alpine() {
pkgdesc="linux-edge from Alpine"
depends="linux-edge"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_amlogic() {
pkgdesc="linux-postmarketos-amlogic from postmarketOS"
depends="linux-postmarketos-amlogic"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
nonfree_firmware() {
pkgdesc="Beelink gt1 Firmware"
depends="firmware-beelink-gt1 linux-firmware-meson"
mkdir "$subpkgdir"
}
sha512sums="
a38e33d5bce26549c73f9aad2988ef8d7e7a3bbb28ac37348545fe7edb935be1b51dbdf8a857fb9d49be7e6eab7d40ac2f11fdcd618487747b809f7236ccf57b asound.state
7e772410cde1110e6b91a08fffdc6d8bc123497857f44ed2a9842deb6d63c107033659dafb25c075198be01ad2f83935e17eded06634680ddfe84776153834e5 deviceinfo
b9f3e1902c17909de928c99868265a257ba5873f6ea6aa1097ad10721f59d68342d50ee51992472ecd23722f7664a13dd15f4e26071a40595c7c3e5161e533d7 modules-initfs.alpine
52948c2884a6f6384e12b7a598f70878526d0d3293c214425170145231144ec7de805c038641741a4a5d75b50e554f6a3fa3769784a674217ed032f9b6a233c8 modules-initfs.amlogic
"