Commit 1de902f2 authored by Natanael Copa's avatar Natanael Copa

abuild: fix -openrc to work with multiple subpackages

allow a single APKBUILD have multiple -openrc subpackages.
parent f263cb9f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment