diff --git a/main/postmarketos-ui-shelli/APKBUILD b/main/postmarketos-ui-shelli/APKBUILD index a1b9c004d..0db195ff6 100644 --- a/main/postmarketos-ui-shelli/APKBUILD +++ b/main/postmarketos-ui-shelli/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Craig Comstock pkgname=postmarketos-ui-shelli pkgver=3 -pkgrel=6 +pkgrel=7 pkgdesc="Plain console with touchscreen gesture support" url="https://gitlab.com/unrznbl/shelli" arch="all" @@ -15,10 +15,21 @@ depends=" postmarketos-base-ui-networkmanager shelli " -install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade" +subpackages="$pkgname-openrc" options="!check" # No tests package() { mkdir -p "$pkgdir" } +openrc() { + install_if="$pkgname=$pkgver-r$pkgrel openrc" + install="$subpkgname.post-install $subpkgname.pre-deinstall $subpkgname.post-upgrade" + depends=" + networkmanager-openrc + ofono-openrc + shelli-openrc + " + + mkdir -p "$subpkgdir" +} diff --git a/main/postmarketos-ui-shelli/postmarketos-ui-shelli.post-install b/main/postmarketos-ui-shelli/postmarketos-ui-shelli-openrc.post-install similarity index 100% rename from main/postmarketos-ui-shelli/postmarketos-ui-shelli.post-install rename to main/postmarketos-ui-shelli/postmarketos-ui-shelli-openrc.post-install diff --git a/main/postmarketos-ui-shelli/postmarketos-ui-shelli-openrc.post-upgrade b/main/postmarketos-ui-shelli/postmarketos-ui-shelli-openrc.post-upgrade new file mode 120000 index 000000000..d4632f0a0 --- /dev/null +++ b/main/postmarketos-ui-shelli/postmarketos-ui-shelli-openrc.post-upgrade @@ -0,0 +1 @@ +postmarketos-ui-shelli-openrc.post-install \ No newline at end of file diff --git a/main/postmarketos-ui-shelli/postmarketos-ui-shelli.pre-deinstall b/main/postmarketos-ui-shelli/postmarketos-ui-shelli-openrc.pre-deinstall similarity index 100% rename from main/postmarketos-ui-shelli/postmarketos-ui-shelli.pre-deinstall rename to main/postmarketos-ui-shelli/postmarketos-ui-shelli-openrc.pre-deinstall diff --git a/main/postmarketos-ui-shelli/postmarketos-ui-shelli.post-upgrade b/main/postmarketos-ui-shelli/postmarketos-ui-shelli.post-upgrade deleted file mode 120000 index 70cf8169d..000000000 --- a/main/postmarketos-ui-shelli/postmarketos-ui-shelli.post-upgrade +++ /dev/null @@ -1 +0,0 @@ -postmarketos-ui-shelli.post-install \ No newline at end of file