summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornl67202016-09-13 16:41:29 +0300
committernl67202016-09-13 16:41:29 +0300
commitace08b1623646856d54bc94b6748ee42037adc35 (patch)
tree442c09e0dcf7812f6423fdd818947a9a666d6db6
parenta957d8029b2a39b8ab5ec29282d322052276a9cb (diff)
downloadaur-ace08b1623646856d54bc94b6748ee42037adc35.tar.gz
Fix pkgver
-rw-r--r--PKGBUILD15
1 files changed, 8 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 14c1c12857f..077e9873091 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,5 @@
-# Maintainer: Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
+# Maintainer: nl6720 <nl6720@gmail.com>
+# Contributor: Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
_USE_GNU_EFI="1"
@@ -65,14 +66,14 @@ sha1sums=('SKIP'
'b6bc8653eb15a650b557db177378e65f6cbd52a3')
pkgver() {
-
+
cd "${srcdir}/${__pkgname}/"
-
- _ACTUAL_REFIND_VER="$(grep 'rEFInd Version' "${srcdir}/${__pkgname}/refind/main.c" | awk '{print $4}' | sed -e 's|");||g')"
- echo "${_ACTUAL_REFIND_VER}.$(git rev-list --count HEAD).$(git describe --always)" | sed -e 's|-|.|g'
-
+
+ _ACTUAL_REFIND_VER="$(grep -o 'REFIND_VERSION=.*' "${srcdir}/${__pkgname}/Makefile" | grep -Eo '([0-9]|\.)+')"
+ echo "${_ACTUAL_REFIND_VER}.$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")"
+
unset _ACTUAL_REFIND_VER
-
+
}
_setup_tianocore_env_vars() {