summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorarchcrack2021-01-28 06:31:59 -0300
committerarchcrack2021-01-28 06:31:59 -0300
commite97e53bfcfd29287c9ab36f6436ae4729758928d (patch)
tree3a86cedfe552da34d10032ea29bcf60ae23e9460
parent1ed5af202a03eaf6c6e78e3a584c9c8f08c93f74 (diff)
downloadaur-e97e53bfcfd29287c9ab36f6436ae4729758928d.tar.gz
Use git describe for pkgver()
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD6
2 files changed, 5 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c254f87972a..dc5d36894fd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = clifm-git
pkgdesc = The KISS file manager: cli-based, ultra-lightweight, and lightning fast (development version)
- pkgver = 0.27.1
- pkgrel = 3
+ pkgver = 0.27.1.r7.gfdc0147
+ pkgrel = 1
url = https://github.com/leo-arch/clifm
arch = any
license = GPL2
diff --git a/PKGBUILD b/PKGBUILD
index 544264b89ec..31ff91e4707 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
pkgname=clifm-git
_pkgname=clifm
-pkgver=0.27.1
-pkgrel=3
+pkgver=0.27.1.r7.gfdc0147
+pkgrel=1
pkgdesc="The KISS file manager: cli-based, ultra-lightweight, and lightning fast (development version)"
arch=(any)
url="https://github.com/leo-arch/clifm"
@@ -16,7 +16,7 @@ sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
- curl -s "https://raw.githubusercontent.com/leo-arch/$_pkgname/master/${_pkgname}.c" | grep "#define VERSION" | cut -d" " -f3 | sed 's/"//g'
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {