summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reuße2017-02-12 05:55:16 +0100
committerSebastian Reuße2017-02-12 05:55:16 +0100
commit303d4345ee18e3791343ee7fdf6024c1aeb77ef6 (patch)
treee193cb0e70b50c0202b32c4a2234754709f73bd5
parent6569c64d2a8765cf8f137d4f0abf6cf72f5c8cc1 (diff)
downloadaur-303d4345ee18e3791343ee7fdf6024c1aeb77ef6.tar.gz
pkgver: use release tags
Upstream now tags releases.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
2 files changed, 5 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f437e6493310..8af4d84d2e76 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Sat Feb 11 11:41:07 UTC 2017
+# Sun Feb 12 04:55:16 UTC 2017
pkgbase = pixterm-git
pkgdesc = Draw images in your ANSI terminal with true color
- pkgver = r9.0604f32
+ pkgver = v1.1.1.r0.g0604f32
pkgrel = 1
url = https://github.com/eliukblau/pixterm
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 0ac20ee634f9..2f095aaa0817 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Sebastian Reuße <seb@wirrsal.net>
pkgname=pixterm-git
_gitname=pixterm
-pkgver=r9.0604f32
+pkgver=v1.1.1.r0.g0604f32
pkgrel=1
pkgdesc="Draw images in your ANSI terminal with true color"
arch=(x86_64 i686)
@@ -16,10 +16,8 @@ md5sums=(SKIP)
pkgver() {
cd "$_gitname"
- # No tagged commits. ヽ(´ー`)ノ
- commit=$(git rev-list --count master)
- hash=$(git rev-parse --short HEAD)
- echo "r$commit.$hash"
+ git describe --long --tags \
+ | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {