main/postmarketos-tweaks: split -openrc subpackage (MR 5364)

This commit is contained in:
jane400 2024-06-24 14:43:21 +02:00 committed by Clayton Craft
parent 8d3998b561
commit 87ccb5b57c
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
3 changed files with 14 additions and 4 deletions

View file

@ -1,15 +1,19 @@
# Maintainer: Newbyte <newbyte@postmarketos.org> # Maintainer: Newbyte <newbyte@postmarketos.org>
pkgname=postmarketos-tweaks pkgname=postmarketos-tweaks
pkgver=0.13.2 pkgver=0.13.2
pkgrel=0 pkgrel=1
pkgdesc="Tweak tool for phone UIs" pkgdesc="Tweak tool for phone UIs"
url="https://gitlab.com/postmarketOS/postmarketos-tweaks" url="https://gitlab.com/postmarketOS/postmarketos-tweaks"
arch="noarch" arch="noarch"
license="GPL-3.0-or-later" license="GPL-3.0-or-later"
subpackages="$pkgname-phosh:phosh $pkgname-pinephone:pinephone $pkgname-sxmo-x11:sxmo" subpackages="
$pkgname-openrc
$pkgname-phosh:phosh
$pkgname-pinephone:pinephone
$pkgname-sxmo-x11:sxmo
"
depends="python3 py3-gobject3 py3-yaml gtk+3.0 libhandy1" depends="python3 py3-gobject3 py3-yaml gtk+3.0 libhandy1"
makedepends="py3-setuptools glib-dev libhandy1-dev meson" makedepends="py3-setuptools glib-dev libhandy1-dev meson"
install="$pkgname.post-install $pkgname.post-upgrade"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/postmarketOS/postmarketos-tweaks/-/archive/$pkgver/postmarketos-tweaks-$pkgver.tar.gz" source="$pkgname-$pkgver.tar.gz::https://gitlab.com/postmarketOS/postmarketos-tweaks/-/archive/$pkgver/postmarketos-tweaks-$pkgver.tar.gz"
options="!check" # There's no testsuite options="!check" # There's no testsuite
@ -40,6 +44,13 @@ sxmo() {
amove usr/share/postmarketos-tweaks/sxmo-x11.yml amove usr/share/postmarketos-tweaks/sxmo-x11.yml
} }
openrc() {
install_if="$pkgname=$pkgver-r$pkgrel"
install="$subpkgname.post-install"
default_openrc
}
sha512sums=" sha512sums="
9dee339609712b14970d15ad4c1bfccd246c3cea132b0a6a825262ae7bb7d04e9b03761e5f7832d36d5bfa5a9c20d893b713c0433316338ff0ad50d7b80ee6c0 postmarketos-tweaks-0.13.2.tar.gz 9dee339609712b14970d15ad4c1bfccd246c3cea132b0a6a825262ae7bb7d04e9b03761e5f7832d36d5bfa5a9c20d893b713c0433316338ff0ad50d7b80ee6c0 postmarketos-tweaks-0.13.2.tar.gz
" "

View file

@ -1 +0,0 @@
postmarketos-tweaks.post-install