Commit e81ebe19 authored by Natanael Copa's avatar Natanael Copa
Browse files

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

parent 3a201f66
...@@ -346,9 +346,11 @@ mod() { ...@@ -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"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment