summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xnewapkbuild.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/newapkbuild.in b/newapkbuild.in
index 8c7df33..bdb511e 100755
--- a/newapkbuild.in
+++ b/newapkbuild.in
@@ -50,6 +50,7 @@ newaport() {
-e "s/^pkgver=.*/pkgver=$pv/" \
"$datadir"/sample.APKBUILD > APKBUILD || return 1
if [ -n "$source" ]; then
+ source=$(echo "$source" | sed "s/$pv/\$pkgver/g")
sed -i -e "/^source=/s|=.*|=\"$source\"|" APKBUILD || return 1
fi
#-e '1,/^\#$/d' \