summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmal Karunarathna2018-12-09 18:39:15 +0530
committerAmal Karunarathna2018-12-09 18:39:15 +0530
commitf146328c5a97460c7282c7b2f18e4882d8c8b47c (patch)
treebb03281a452b36b2b5598962a27ed7bbd08db9aa
parentc74d445d10549012b1923de328ce69fa2819e61b (diff)
downloadaur-f146328c5a97460c7282c7b2f18e4882d8c8b47c.tar.gz
Change pkgver()
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 5 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 801afbc3f73f..0920d86b2680 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = plasma5-applets-window-title-git
pkgdesc = Plasma 5 applet that shows the application title and icon for active window
- pkgver = r31.c8b216a
+ pkgver = 0.2.r1.g58c4fc9
pkgrel = 1
url = https://github.com/psifidotos/applet-window-title
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 39e6f678a496..31002e180906 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_gitname=applet-window-title
pkgname=plasma5-applets-window-title-git
-pkgver=r31.c8b216a
+pkgver=0.2.r1.g58c4fc9
pkgrel=1
pkgdesc="Plasma 5 applet that shows the application title and icon for active window"
arch=(x86_64)
@@ -14,9 +14,9 @@ conflicts=(plasma5-applets-window-title)
source=("git+${url}.git")
sha256sums=('SKIP')
-pkgver(){
- cd ${_gitname}
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+pkgver() {
+ cd ${_gitname}
+ git describe --long | sed 's/^[v-]//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {