newapkbuild: add empty line after builddir= and quote whole value

This commit is contained in:
Jakub Jirutka 2016-06-13 22:43:27 +02:00
parent a3ce23dd53
commit 1647fef93a
1 changed files with 1 additions and 3 deletions

View File

@ -193,7 +193,6 @@ makedepends="$makedepends"
install="$install"
subpackages="\$pkgname-dev \$pkgname-doc"
source="$source"
__EOF__
abuild -f fetch unpack
@ -202,10 +201,9 @@ __EOF__
if [ -d "$i" ]; then
sdir=$i
builddir=$(echo ${i#*/} | sed "s/$pv/\$pkgver/g")
builddir="\"\$srcdir\"/$builddir"
fi
done
echo "builddir=$builddir" >> APKBUILD
printf 'builddir="$srcdir/%s"\n\n' "$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.