diff --git a/main/postmarketos-ui-console/APKBUILD b/main/postmarketos-ui-console/APKBUILD index 285776d8b..e5cb00513 100644 --- a/main/postmarketos-ui-console/APKBUILD +++ b/main/postmarketos-ui-console/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Clayton Craft pkgname=postmarketos-ui-console pkgver=0.1 -pkgrel=5 +pkgrel=6 pkgdesc="Console environment, with no graphical/touch UI" url="https://postmarketos.org/" arch="noarch" @@ -14,8 +14,15 @@ depends=" wireless-tools " options="!check" # No testsuite -install="$pkgname.post-install $pkgname.post-upgrade" +subpackages="$pkgname-openrc:_openrc" package() { mkdir -p "$pkgdir" } + +_openrc() { + install_if="$pkgname=$pkgver-r$pkgrel openrc" + install="$subpkgname.post-install $subpkgname.post-upgrade" + depends="networkmanager-openrc" + mkdir -p "$subpkgdir" +} diff --git a/main/postmarketos-ui-console/postmarketos-ui-console.post-install b/main/postmarketos-ui-console/postmarketos-ui-console-openrc.post-install similarity index 100% rename from main/postmarketos-ui-console/postmarketos-ui-console.post-install rename to main/postmarketos-ui-console/postmarketos-ui-console-openrc.post-install diff --git a/main/postmarketos-ui-console/postmarketos-ui-console-openrc.post-upgrade b/main/postmarketos-ui-console/postmarketos-ui-console-openrc.post-upgrade new file mode 120000 index 000000000..c3e997a0f --- /dev/null +++ b/main/postmarketos-ui-console/postmarketos-ui-console-openrc.post-upgrade @@ -0,0 +1 @@ +postmarketos-ui-console-openrc.post-install \ No newline at end of file diff --git a/main/postmarketos-ui-console/postmarketos-ui-console.post-upgrade b/main/postmarketos-ui-console/postmarketos-ui-console.post-upgrade deleted file mode 120000 index a9777ac91..000000000 --- a/main/postmarketos-ui-console/postmarketos-ui-console.post-upgrade +++ /dev/null @@ -1 +0,0 @@ -postmarketos-ui-console.post-install \ No newline at end of file