mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-25 08:22:19 +00:00
abuild: consider all subdirs named 'include' belong to -dev
This commit is contained in:
parent
3a201f6600
commit
e81ebe1981
8
abuild
8
abuild
@ -346,9 +346,11 @@ 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/ -name '*.[acho]' -o -name '*.la' 2>/dev/null)\
|
for i in usr/include usr/lib/pkgconfig usr/share/aclocal\
|
||||||
usr/include usr/lib/pkgconfig usr/share/aclocal \
|
usr/share/gettext usr/bin/*-config \
|
||||||
usr/share/gettext usr/bin/*-config ; do
|
$(find -name include -type d) \
|
||||||
|
$(find usr/ -name '*.[acho]' -o -name '*.la' \
|
||||||
|
2>/dev/null); 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
Block a user