summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornl67202018-07-12 14:47:21 +0300
committernl67202018-07-12 14:47:21 +0300
commit3db1432c5b6d0dcd18e268207bfa4f5431ada5ed (patch)
treec28376cdefc11bf87546e485849eeeadb8e24b88
parent7323f79c9a033e43a038e3dbf8fe338ef25fe4d4 (diff)
downloadaur-3db1432c5b6d0dcd18e268207bfa4f5431ada5ed.tar.gz
Improve pkgver()
Add "g" before commit hash.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
2 files changed, 4 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e5f0385f7d2..a778e52b808 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = refind-efi-git
pkgdesc = rEFInd Boot Manager - git version - Built with TianoCore EDK2 libs
- pkgver = 0.11.2.2.r617.7e9e438
+ pkgver = 0.11.2.2.r617.g7e9e438
pkgrel = 1
url = http://www.rodsbooks.com/refind/
install = refind-efi.install
@@ -20,7 +20,7 @@ pkgbase = refind-efi-git
optdepends = sbsigntools: For EFI binary signing (Secure Boot support)
optdepends = preloader-signed: pre-signed shim loader (Secure Boot support)
optdepends = shim-signed: pre-signed shim loader (Secure Boot support)
- provides = refind-efi=0.11.2.2.r617.7e9e438
+ provides = refind-efi=0.11.2.2.r617.g7e9e438
conflicts = refind-efi
options = !strip
options = !buildflags
diff --git a/PKGBUILD b/PKGBUILD
index 591a6500b30..7859ba04be8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@ _PXE='0'
_pkgname='refind'
pkgname="${_pkgname}-efi-git"
-pkgver=0.11.2.2.r617.7e9e438
+pkgver=0.11.2.2.r617.g7e9e438
pkgrel=1
pkgdesc='rEFInd Boot Manager - git version'
url='http://www.rodsbooks.com/refind/'
@@ -69,7 +69,7 @@ pkgver() {
cd "${srcdir}/${_pkgname}/"
- printf '%s.r%s.%s' "$(grep -Po 'REFIND_VERSION L"\K[\d.]+' "${srcdir}/${_pkgname}/include/version.h")" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ printf '%s.r%s.g%s' "$(grep -Po 'REFIND_VERSION L"\K[\d.]+' "${srcdir}/${_pkgname}/include/version.h")" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}