Jump to content

Writing apkbuilds for upstream software

From postmarketOS Wiki
Revision as of 03:37, 5 September 2024 by Quickfixdemon (talk | contribs) (Changed tags from source to syntaxhighlight)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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
}