summaryrefslogtreecommitdiff
path: root/newapkbuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-06-16 14:00:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-06-16 14:00:34 +0000
commit991652c96c0af2f7faad2cc7f1fa751855c2c4a5 (patch)
tree38c0ed0196a0666ca8bce32acdae430e22acfcd4 /newapkbuild.in
parenta57baec7cc9ae091a6b285cfece86ca2f8c21a61 (diff)
downloadabuild-991652c96c0af2f7faad2cc7f1fa751855c2c4a5.tar.gz
abuild-991652c96c0af2f7faad2cc7f1fa751855c2c4a5.tar.bz2
abuild-991652c96c0af2f7faad2cc7f1fa751855c2c4a5.tar.xz
abuild-991652c96c0af2f7faad2cc7f1fa751855c2c4a5.zip
newapkbuid: fix pkgver in source
Diffstat (limited to 'newapkbuild.in')
-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' \