summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank LENORMAND2019-07-21 18:36:57 +0300
committerFrank LENORMAND2019-07-21 18:36:57 +0300
commit4cebdc2009f99a19bd33a44e8068e619f658c58f (patch)
treef3783d737a9fbb6564e4c7dfee1332e9fc0dd808
parent808442ce5d31f9851eb9dac4f58def8d168f4a11 (diff)
downloadaur-4cebdc2009f99a19bd33a44e8068e619f658c58f.tar.gz
Use a Git generated package version descriptor
Use the `git describe` command to return a version descriptor better suited to *-git packages: <last_tag>-<commits_since_tag>-<head_hash>
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5a4e4fe6b60..5cd8e8cf0ef 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = kakoune-git
pkgdesc = Multiple-selection, UNIX-flavored modal editor
- pkgver = r7175.3e89148d
+ pkgver = v2019.07.01_32_g837416ea
pkgrel = 1
url = https://github.com/mawww/kakoune
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 1e7c5b36cc4..b674cf4d570 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
pkgname=kakoune-git
-pkgver=r7175.3e89148d
+pkgver=v2019.07.01_32_g837416ea
pkgrel=1
pkgdesc='Multiple-selection, UNIX-flavored modal editor'
arch=('x86_64' 'armv7h')
@@ -27,7 +27,7 @@ sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --tags | tr '-' '_'
}
check() {