Writing apkbuilds for upstream software

From postmarketOS
Icon This page could use some expansion. If you'd like to help out, feel free to edit this article!
In particular: Perhaps this is redundant? See the Alpine wiki article about creating an Alpine package.

Meson based

makedepends="meson"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install -C output
}