From 5f73dcac9a28e9329ce1451823a4342343b191cd Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Tue, 23 Jul 2024 22:03:57 +0200 Subject: [PATCH] main/postmarketos-ui-gnome-mobile: add -openrc subpackage (MR 5374) --- main/postmarketos-ui-gnome-mobile/APKBUILD | 17 ++++++++++++----- ...arketos-ui-gnome-mobile-openrc.post-install} | 0 ...marketos-ui-gnome-mobile-openrc.post-upgrade | 1 + .../postmarketos-ui-gnome-mobile.post-upgrade | 1 - 4 files changed, 13 insertions(+), 6 deletions(-) rename main/postmarketos-ui-gnome-mobile/{postmarketos-ui-gnome-mobile.post-install => postmarketos-ui-gnome-mobile-openrc.post-install} (100%) create mode 120000 main/postmarketos-ui-gnome-mobile/postmarketos-ui-gnome-mobile-openrc.post-upgrade delete mode 120000 main/postmarketos-ui-gnome-mobile/postmarketos-ui-gnome-mobile.post-upgrade diff --git a/main/postmarketos-ui-gnome-mobile/APKBUILD b/main/postmarketos-ui-gnome-mobile/APKBUILD index e065fb66c..a84f29039 100644 --- a/main/postmarketos-ui-gnome-mobile/APKBUILD +++ b/main/postmarketos-ui-gnome-mobile/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Newbyte pkgname=postmarketos-ui-gnome-mobile pkgver=2 -pkgrel=4 +pkgrel=5 pkgdesc="(Wayland) Gnome Shell patched to adapt better to phones (Experimental)" url="https://gnome.org/" arch="noarch !armhf !riscv64" # gnome-shell / riscv64: mutter-mobile @@ -43,10 +43,8 @@ _pmb_recommends=" postprocessd ttyescape " -install="$pkgname.post-install $pkgname.post-upgrade" -source=" - firefox-wayland.sh - " +subpackages="$pkgname-openrc" +source="firefox-wayland.sh" options="!check" package() { @@ -54,6 +52,15 @@ package() { "$srcdir"/firefox-wayland.sh \ -t "$pkgdir"/etc/profile.d/ } + +openrc() { + install_if="$pkgname=$pkgver-r$pkgrel" + install="$subpkgname.post-install $subpkgname.post-upgrade" + depends="gdm-openrc" + + mkdir -p "$subpkgdir" +} + sha512sums=" 0d9ec58be7dc354e181989c7f08e7d4dd93fefd06a99e784b87fe898479dd47a40dfa9689c6a63ebdc04bf87883a270686aec27f7cc34cb21ec0f370a4afe2d8 firefox-wayland.sh " diff --git a/main/postmarketos-ui-gnome-mobile/postmarketos-ui-gnome-mobile.post-install b/main/postmarketos-ui-gnome-mobile/postmarketos-ui-gnome-mobile-openrc.post-install similarity index 100% rename from main/postmarketos-ui-gnome-mobile/postmarketos-ui-gnome-mobile.post-install rename to main/postmarketos-ui-gnome-mobile/postmarketos-ui-gnome-mobile-openrc.post-install diff --git a/main/postmarketos-ui-gnome-mobile/postmarketos-ui-gnome-mobile-openrc.post-upgrade b/main/postmarketos-ui-gnome-mobile/postmarketos-ui-gnome-mobile-openrc.post-upgrade new file mode 120000 index 000000000..7cd1c3cb7 --- /dev/null +++ b/main/postmarketos-ui-gnome-mobile/postmarketos-ui-gnome-mobile-openrc.post-upgrade @@ -0,0 +1 @@ +postmarketos-ui-gnome-mobile-openrc.post-install \ No newline at end of file diff --git a/main/postmarketos-ui-gnome-mobile/postmarketos-ui-gnome-mobile.post-upgrade b/main/postmarketos-ui-gnome-mobile/postmarketos-ui-gnome-mobile.post-upgrade deleted file mode 120000 index 2bd3ab5f5..000000000 --- a/main/postmarketos-ui-gnome-mobile/postmarketos-ui-gnome-mobile.post-upgrade +++ /dev/null @@ -1 +0,0 @@ -postmarketos-ui-gnome-mobile.post-install \ No newline at end of file