summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2017-12-20 07:16:10 +0100
committerhaawda2017-12-20 07:16:10 +0100
commit88fdc6b9c742fff0e2bd7e52fec07efa62ba39f0 (patch)
tree08bf066f125f52a1279c77c8412f0067c967ed17
parente67a1391d51a5a3631adf3893365fe1ce6a7ea72 (diff)
downloadaur-88fdc6b9c742fff0e2bd7e52fec07efa62ba39f0.tar.gz
rewritten pkgver (advice from a TU)
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD10
2 files changed, 7 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 42c692ef1d3..f9da58b1154 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Mon Dec 18 21:10:43 UTC 2017
+# Wed Dec 20 06:16:10 UTC 2017
pkgbase = dunst-git
pkgdesc = a lightweight notification-daemon - git version
- pkgver = 1.2.0.192.1042.g35dbd00
+ pkgver = r1048.5a9f37b
pkgrel = 1
url = https://dunst-project.org/
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index f666c9b4793..4a05f9b31f4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=dunst-git
_gitname=dunst
-pkgver=1.2.0.192.1042.g35dbd00
+pkgver=r1048.5a9f37b
pkgrel=1
pkgdesc="a lightweight notification-daemon - git version"
arch=('i686' 'x86_64' 'armv7h')
@@ -22,12 +22,12 @@ md5sums=('SKIP')
options=('!makeflags')
pkgver() {
- cd ${srcdir}/${_gitname}
- printf %s $(git describe --tags | tr -d v | sed 's+-+.+'|sed "s+-+.$(git rev-list --count HEAD).+")
+ cd ${_gitname}
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
- cd ${srcdir}/${_gitname}
+ cd ${_gitname}
if [ -e ${srcdir}/config.h ]; then
msg "Using custom config.h"
cp ${srcdir}/config.h .
@@ -35,7 +35,7 @@ prepare() {
}
build() {
- cd ${srcdir}/${_gitname}
+ cd ${_gitname}
if [ -e ${SRCDEST}/config.h ]; then
CFLAGS=-DSTATIC_CONFIG make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
CFLAGS=-DSTATIC_CONFIG make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 dunstify