abuild: consider all subdirs named 'include' belong to -dev

This commit is contained in:
Natanael Copa 2009-01-11 22:10:56 +00:00
parent 3a201f6600
commit e81ebe1981
1 changed files with 5 additions and 3 deletions

8
abuild
View File

@ -346,9 +346,11 @@ mod() {
dev() {
depends="$pkgname $depends_dev"
cd "$pkgdir" || return 0
for i in cd $(find usr/ -name '*.[acho]' -o -name '*.la' 2>/dev/null)\
usr/include usr/lib/pkgconfig usr/share/aclocal \
usr/share/gettext usr/bin/*-config ; do
for i in usr/include usr/lib/pkgconfig usr/share/aclocal\
usr/share/gettext usr/bin/*-config \
$(find -name include -type d) \
$(find usr/ -name '*.[acho]' -o -name '*.la' \
2>/dev/null); do
if [ -e "$pkgdir/$i" ] || [ -L "$pkgdir/$i" ]; then
d="$subpkgdir/${i%/*}" # dirname $i
mkdir -p "$d"