aports/testing/fbp/APKBUILD
2023-12-19 10:08:40 +00:00

29 lines
913 B
Text

# Maintainer: Miles Alan <m@milesalan.com>
# Contributor: Miles Alan <m@milesalan.com>
pkgname=fbp
pkgver=0.5
pkgrel=1
arch="aarch64 x86_64" # Limited by zig aport
url="https://git.sr.ht/~mil/fbp"
pkgdesc="Framebuffer linux phone UI environment, supported best on the Pinephone"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~mil/fbp/archive/$pkgver.tar.gz"
license="GPL-3.0-or-later"
makedepends="zig>=0.9.1 freetype-dev linux-headers"
options="!check" # Has no tests
# We may want other than "baseline" for other targets, when enabled by zig
case "$CARCH" in
aarch64|x86_64) cputarget=baseline ;;
esac
build() {
zig build -Drelease-safe ${cputarget:+-Dcpu="$cputarget"}
}
package() {
install -Dm755 zig-out/bin/fbp "$pkgdir/usr/bin/fbp"
}
sha512sums="
7f73d9a532c40c6be1feeedc5fe7256e83deb5e431aef46c07eb98e00a884e0919a5a5f668a1cf2d7357930d0ae297a7ef681b8482ec99b8e653d03e2ce56ae0 fbp-0.5.tar.gz
"