pmaports/device/testing/device-lark-freeme-70-2s/APKBUILD

58 lines
1.3 KiB
Text
Raw Normal View History

# Maintainer: Jacek Pruciak <pmos@juniorjpdj.pl>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-lark-freeme-70-2s
pkgdesc="Lark FreeMe 70.2S"
pkgver=0.2.1
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
linux-postmarketos-allwinner
mesa-egl
postmarketos-base
u-boot-tools
u-boot-lark-freeme-70-2s
"
makedepends="devicepkg-dev linux-postmarketos-allwinner"
source="
deviceinfo
u-boot-script.cmd
"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
build() {
devicepkg_build $startdir $pkgname
mkimage \
-A arm \
-O linux \
-T script \
-C none \
-a 0 \
-e 0 \
-n postmarketos \
-d "$srcdir"/u-boot-script.cmd \
"$srcdir"/boot.scr
}
package() {
devicepkg_package $startdir $pkgname
# U-Boot boot script
install -Dm644 "$srcdir"/boot.scr \
"$pkgdir"/boot/boot.scr
}
nonfree_firmware() {
pkgdesc="Wifi firmware (rtl8188ctv)"
depends="linux-firmware-rtlwifi"
mkdir "$subpkgdir"
}
sha512sums="
61ceb08acef7c6d082ea33e869263b9de82bd1b6e43a6a9771e5e317626cbb2a55445b8d95e6e64dfd6246f22934e77185819500547124d29926f4f7fef96643 deviceinfo
5b8c1d440867a3cee891168a156fb428b14dfeaf0b437da3e4dc1dd1408458bde98b4ce4682dfb0c5f9c5055a0e2c34cc78ba6160b6ca64281f9721d8d02dede u-boot-script.cmd
"