diff --git a/main/postmarketos-ui-framebufferphone/APKBUILD b/main/postmarketos-ui-framebufferphone/APKBUILD index 308898eae..4cc19ab75 100644 --- a/main/postmarketos-ui-framebufferphone/APKBUILD +++ b/main/postmarketos-ui-framebufferphone/APKBUILD @@ -3,7 +3,7 @@ # Contributor: Miles Alan pkgname=postmarketos-ui-framebufferphone pkgver=1 -pkgrel=1 +pkgrel=2 pkgdesc="Minimalist framebuffer menu/keyboard UI accessible via touch/volume keys & compatible scripts" url="http://sr.ht/~hamblingreen/framebufferphone" arch="aarch64 x86_64" # Limited by fbp / zig in alpine support @@ -11,7 +11,7 @@ license="GPL-3.0-or-later" depends=" postmarketos-base-ui fbp -" + " _pmb_recommends=" f_scripts-f_audio f_scripts-f_files @@ -24,14 +24,23 @@ _pmb_recommends=" f_scripts-f_timer f_scripts-f_web f_scripts-f_youtube -" -install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade" + " +subpackages="$pkgname-openrc" source="fbp.init" options="!check" # No tests package() { install -Dm755 "$srcdir"/fbp.init "$pkgdir"/etc/init.d/fbp } + +openrc() { + install_if="$pkgname=$pkgver-r$pkgrel openrc" + install="$subpkgname.post-install $subpkgname.pre-deinstall $subpkgname.post-upgrade" + depends="fbp-openrc" + + mkdir -p "$subpkgdir" +} + sha512sums=" e95d2daaa90b8f4cf4ba7da9e7330b59057505857b8688b4d60b7f2ddeec8d59308002ecd17083b1c6096a40dc496b996dba42ef21fff95619fe535280465372 fbp.init " diff --git a/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.post-install b/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone-openrc.post-install similarity index 100% rename from main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.post-install rename to main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone-openrc.post-install diff --git a/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone-openrc.post-upgrade b/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone-openrc.post-upgrade new file mode 120000 index 000000000..ae6eb2ad2 --- /dev/null +++ b/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone-openrc.post-upgrade @@ -0,0 +1 @@ +postmarketos-ui-framebufferphone-openrc.post-install \ No newline at end of file diff --git a/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.pre-deinstall b/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone-openrc.pre-deinstall similarity index 100% rename from main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.pre-deinstall rename to main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone-openrc.pre-deinstall diff --git a/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.post-upgrade b/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.post-upgrade deleted file mode 120000 index b4a23d469..000000000 --- a/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.post-upgrade +++ /dev/null @@ -1 +0,0 @@ -postmarketos-ui-framebufferphone.post-install \ No newline at end of file