Made pkgver automatic

This commit is contained in:
deajan 2016-11-11 23:44:17 +01:00
parent cc2875f2d7
commit 69c681fd57
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,11 @@ git clone git+ssh://aur@aur.archlinux.org/osync.git osync.aur &&
cd "osync.aur" &&
srcdir="." &&
source "PKGBUILD" &&
# Get pkgver from current osync
pkgver=$(grep PROGRAM_VERSION= ../../../osync.sh)
pkgver=${pkgver##*=}
url=$(echo -n ${source[0]} | sed 's/git+//g' | sed 's/#.*//g') &&
branch=$(echo -n ${source[0]} | sed 's/.*#branch=//g') &&
git clone -b $branch $url &&