newapkbuid: fix pkgver in source

This commit is contained in:
Natanael Copa 2010-06-16 14:00:34 +00:00
parent a57baec7cc
commit 991652c96c
1 changed files with 1 additions and 0 deletions

View File

@ -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' \