diff options
-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 } |