diff options
author | Amal Karunarathna | 2018-12-09 18:39:15 +0530 |
---|---|---|
committer | Amal Karunarathna | 2018-12-09 18:39:15 +0530 |
commit | f146328c5a97460c7282c7b2f18e4882d8c8b47c (patch) | |
tree | bb03281a452b36b2b5598962a27ed7bbd08db9aa | |
parent | c74d445d10549012b1923de328ce69fa2819e61b (diff) | |
download | aur-f146328c5a97460c7282c7b2f18e4882d8c8b47c.tar.gz |
Change pkgver()
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -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 @@ -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() { |