Commit a3ce23dd authored by Jakub Jirutka's avatar Jakub Jirutka Committed by Natanael Copa

newapkbuild: omit depends_dev if no *.h or *.hpp file found

parent 630c244c
......@@ -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
......
Markdown is supported
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