summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-08-17 13:02:37 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-08-17 13:02:37 +0000
commit5b8d1709da7b838741e8e5bc4bd72022b8db1f57 (patch)
tree7983942e0dbd384dc385977b151a90ba930989b5 /abuild.in
parent1ccf8652da6371103f5f680f45ec3fdd1acd9df0 (diff)
downloadabuild-5b8d1709da7b838741e8e5bc4bd72022b8db1f57.tar.gz
abuild-5b8d1709da7b838741e8e5bc4bd72022b8db1f57.tar.bz2
abuild-5b8d1709da7b838741e8e5bc4bd72022b8db1f57.tar.xz
abuild-5b8d1709da7b838741e8e5bc4bd72022b8db1f57.zip
abuild: the -dev pckages should depend on all subpackages
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index c228d5f..c325a3d 100755
--- a/abuild.in
+++ b/abuild.in
@@ -569,9 +569,14 @@ mod() {
# predefined splitfunc dev
default_dev() {
+ local i
depends="$pkgname $depends_dev"
install="$install_dev"
triggers="$triggers_dev"
+ for i in $origsubpackages; do
+ [ "${i%:*}" = "$subpkgname" ] || depends="$depends ${i%:*}"
+ done
+
cd "$pkgdir" || return 0
for i in usr/include usr/lib/pkgconfig usr/share/aclocal\
usr/share/gettext usr/bin/*-config \
@@ -1023,6 +1028,7 @@ fi
# If we are handling a sub package then reset subpackages and install
if [ -n "$subpkgname" ]; then
+ origsubpackages="$subpackages"
subpackages=
install=
fi