diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2008-12-01 22:04:39 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2008-12-01 22:04:39 +0000 |
commit | bbcaa47c848e0dbb8316310e86f2da2bfaef0aa8 (patch) | |
tree | 65cf9b49bffad48c32be1d8bc8cb7539233562b7 /abuild | |
parent | 958b599057246a4987f6905ba75d312141a0c526 (diff) | |
download | abuild-bbcaa47c848e0dbb8316310e86f2da2bfaef0aa8.tar.gz abuild-bbcaa47c848e0dbb8316310e86f2da2bfaef0aa8.tar.bz2 abuild-bbcaa47c848e0dbb8316310e86f2da2bfaef0aa8.tar.xz abuild-bbcaa47c848e0dbb8316310e86f2da2bfaef0aa8.zip |
usr/bin/*-config belongs into -dev packages
Diffstat (limited to 'abuild')
-rwxr-xr-x | abuild | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -347,13 +347,16 @@ mod() { # predefined splitfunc dev dev() { depends="$pkgname" - for i in $(cd "$pkgdir" && find usr/lib -name '*.a' -o \ + cd "$pkgdir" || return 0 + for i in cd $(find usr/lib -name '*.a' -o \ -name '*.la' -o -name '*.o' 2>/dev/null) \ - usr/include usr/lib/pkgconfig usr/share/aclocal; do + usr/include usr/lib/pkgconfig usr/share/aclocal \ + usr/bin/*-config ; do if [ -e "$pkgdir/$i" ] || [ -L "$pkgdir/$i" ]; then d="$subpkgdir/${i%/*}" # dirname $i mkdir -p "$d" mv "$pkgdir/$i" "$d" + rmdir "$pkgdir/${i%/*}" 2>/dev/null fi done } |