mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-25 16:32:14 +00:00
newapkbuild: omit depends_dev if no *.h or *.hpp file found
This commit is contained in:
parent
630c244cfe
commit
a3ce23dd53
@ -207,6 +207,12 @@ __EOF__
|
||||
done
|
||||
echo "builddir=$builddir" >> APKBUILD
|
||||
|
||||
# Subpackage -dev is usually required only for C/C++. Since depends_dev
|
||||
# confuses a lot people, remove it if there's no .h or .hpp file.
|
||||
find "$sdir" -name "*.h" -o -name "*.hpp" -maxdepth 3 \
|
||||
| head -n 1 | grep -q ".*" \
|
||||
|| sed -i -e '/^depends_dev=.*/d' -e 's/\$depends_dev\s*//' APKBUILD
|
||||
|
||||
# Check if its autotools
|
||||
if [ -z "$buildtype" ]; then
|
||||
if [ -x "$sdir"/configure ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user