From 69c681fd57f0187a0d35d6456538ac9a5ab90168 Mon Sep 17 00:00:00 2001 From: deajan Date: Fri, 11 Nov 2016 23:44:17 +0100 Subject: [PATCH] Made pkgver automatic --- packaging/ARCH/update-osync-pkg.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packaging/ARCH/update-osync-pkg.sh b/packaging/ARCH/update-osync-pkg.sh index 57a1e5f..468f90d 100755 --- a/packaging/ARCH/update-osync-pkg.sh +++ b/packaging/ARCH/update-osync-pkg.sh @@ -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 &&