aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-05-03 18:35:44 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2019-05-03 18:35:44 +0200
commit1de902f2fa2344e9b1b05c6c1fc3766a41bd7dd0 (patch)
treed1f7cf04cb7fc4f5072bd47dc2c44a2b96954492
parentf263cb9f49f3861f3141c22a74360b06cec7b868 (diff)
downloadaports-1de902f2fa2344e9b1b05c6c1fc3766a41bd7dd0.tar.gz
aports-1de902f2fa2344e9b1b05c6c1fc3766a41bd7dd0.tar.bz2
aports-1de902f2fa2344e9b1b05c6c1fc3766a41bd7dd0.tar.xz
abuild: fix -openrc to work with multiple subpackages
allow a single APKBUILD have multiple -openrc subpackages.
-rw-r--r--abuild.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 606aa50cf5..ce27068ce9 100644
--- a/abuild.in
+++ b/abuild.in
@@ -1788,7 +1788,7 @@ libs() {
default_openrc() {
depends="$depends_openrc"
pkgdesc="$pkgdesc (OpenRC init scripts)"
- install_if="openrc $pkgname=$pkgver-r$pkgrel"
+ install_if="openrc ${subpkgname%-openrc}=$pkgver-r$pkgrel"
local dir file
for dir in conf.d init.d; do
if [ -d "$pkgdir/etc/$dir" ]; then