pmaports/main/postmarketos-tweaks/APKBUILD

56 lines
1.4 KiB
Text

# Maintainer: Newbyte <newbyte@postmarketos.org>
pkgname=postmarketos-tweaks
pkgver=0.13.2
pkgrel=1
pkgdesc="Tweak tool for phone UIs"
url="https://gitlab.com/postmarketOS/postmarketos-tweaks"
arch="noarch"
license="GPL-3.0-or-later"
subpackages="
$pkgname-openrc
$pkgname-phosh:phosh
$pkgname-pinephone:pinephone
$pkgname-sxmo-x11:sxmo
"
depends="python3 py3-gobject3 py3-yaml gtk+3.0 libhandy1"
makedepends="py3-setuptools glib-dev libhandy1-dev meson"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/postmarketOS/postmarketos-tweaks/-/archive/$pkgver/postmarketos-tweaks-$pkgver.tar.gz"
options="!check" # There's no testsuite
build() {
abuild-meson . output
meson compile ${JOBS:+-j ${JOBS}} -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
phosh() {
install_if="$pkgname=$pkgver-r$pkgrel phosh"
amove usr/share/postmarketos-tweaks/phosh.yml
}
pinephone() {
install_if="$pkgname=$pkgver-r$pkgrel device-pine64-pinephone"
amove usr/share/postmarketos-tweaks/pinephone.yml
}
sxmo() {
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-ui-sxmo-de-dwm"
amove usr/share/postmarketos-tweaks/sxmo-x11.yml
}
openrc() {
install_if="$pkgname=$pkgver-r$pkgrel"
install="$subpkgname.post-install"
default_openrc
}
sha512sums="
9dee339609712b14970d15ad4c1bfccd246c3cea132b0a6a825262ae7bb7d04e9b03761e5f7832d36d5bfa5a9c20d893b713c0433316338ff0ad50d7b80ee6c0 postmarketos-tweaks-0.13.2.tar.gz
"