abuild: consider all .a .c .h .o files as dev files
Also any /usr/share/gettext dir.
This commit is contained in:
parent
162f34d0da
commit
0b2f41e9d9
5
abuild
5
abuild
|
@ -346,10 +346,9 @@ mod() {
|
||||||
dev() {
|
dev() {
|
||||||
depends="$pkgname $depends_dev"
|
depends="$pkgname $depends_dev"
|
||||||
cd "$pkgdir" || return 0
|
cd "$pkgdir" || return 0
|
||||||
for i in cd $(find usr/lib -name '*.a' -o \
|
for i in cd $(find usr/ -name '*.[acho]' -o -name '*.la' 2>/dev/null)\
|
||||||
-name '*.la' -o -name '*.o' 2>/dev/null) \
|
|
||||||
usr/include usr/lib/pkgconfig usr/share/aclocal \
|
usr/include usr/lib/pkgconfig usr/share/aclocal \
|
||||||
usr/bin/*-config ; do
|
usr/share/gettext usr/bin/*-config ; do
|
||||||
if [ -e "$pkgdir/$i" ] || [ -L "$pkgdir/$i" ]; then
|
if [ -e "$pkgdir/$i" ] || [ -L "$pkgdir/$i" ]; then
|
||||||
d="$subpkgdir/${i%/*}" # dirname $i
|
d="$subpkgdir/${i%/*}" # dirname $i
|
||||||
mkdir -p "$d"
|
mkdir -p "$d"
|
||||||
|
|
Loading…
Reference in New Issue