From 7a5970f6d9683ca9c5b8d19c1a16202c4a52050b Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Tue, 23 Jul 2024 22:12:30 +0200 Subject: [PATCH] main/postmarketos-ui-bananui: add -openrc subpackage (MR 5374) --- main/postmarketos-ui-bananui/APKBUILD | 16 ++++++++++++++-- ... postmarketos-ui-bananui-openrc.post-install} | 0 .../postmarketos-ui-bananui-openrc.post-upgrade | 1 + .../postmarketos-ui-bananui.post-upgrade | 1 - 4 files changed, 15 insertions(+), 3 deletions(-) rename main/postmarketos-ui-bananui/{postmarketos-ui-bananui.post-install => postmarketos-ui-bananui-openrc.post-install} (100%) create mode 120000 main/postmarketos-ui-bananui/postmarketos-ui-bananui-openrc.post-upgrade delete mode 120000 main/postmarketos-ui-bananui/postmarketos-ui-bananui.post-upgrade diff --git a/main/postmarketos-ui-bananui/APKBUILD b/main/postmarketos-ui-bananui/APKBUILD index 4402df63e..616cfcdb1 100644 --- a/main/postmarketos-ui-bananui/APKBUILD +++ b/main/postmarketos-ui-bananui/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Affe Null pkgname=postmarketos-ui-bananui pkgver=1 -pkgrel=1 +pkgrel=2 pkgdesc="(Wayland) Keypad controlled UI for feature phones" url="https://git.abscue.de/obp/bananui" arch="noarch" @@ -33,10 +33,22 @@ _pmb_groups=" seat wroomd " -install="$pkgname.post-install $pkgname.post-upgrade" +subpackages="$pkgname-openrc" options="!check" package() { mkdir -p "$pkgdir" } +openrc() { + install_if="$pkgname=$pkgver-r$pkgrel openrc" + install="$subpkgname.post-install $subpkgname.post-upgrade" + depends=" + networkmanager-openrc + seatd-dev + tinydm-openrc + wroomd-dev + " + + mkdir -p "$subpkgdir" +} diff --git a/main/postmarketos-ui-bananui/postmarketos-ui-bananui.post-install b/main/postmarketos-ui-bananui/postmarketos-ui-bananui-openrc.post-install similarity index 100% rename from main/postmarketos-ui-bananui/postmarketos-ui-bananui.post-install rename to main/postmarketos-ui-bananui/postmarketos-ui-bananui-openrc.post-install diff --git a/main/postmarketos-ui-bananui/postmarketos-ui-bananui-openrc.post-upgrade b/main/postmarketos-ui-bananui/postmarketos-ui-bananui-openrc.post-upgrade new file mode 120000 index 000000000..6d4ea2fa1 --- /dev/null +++ b/main/postmarketos-ui-bananui/postmarketos-ui-bananui-openrc.post-upgrade @@ -0,0 +1 @@ +postmarketos-ui-bananui-openrc.post-install \ No newline at end of file diff --git a/main/postmarketos-ui-bananui/postmarketos-ui-bananui.post-upgrade b/main/postmarketos-ui-bananui/postmarketos-ui-bananui.post-upgrade deleted file mode 120000 index 351882eaf..000000000 --- a/main/postmarketos-ui-bananui/postmarketos-ui-bananui.post-upgrade +++ /dev/null @@ -1 +0,0 @@ -postmarketos-ui-bananui.post-install \ No newline at end of file