diff options
author | haawda | 2017-12-20 07:16:10 +0100 |
---|---|---|
committer | haawda | 2017-12-20 07:16:10 +0100 |
commit | 88fdc6b9c742fff0e2bd7e52fec07efa62ba39f0 (patch) | |
tree | 08bf066f125f52a1279c77c8412f0067c967ed17 | |
parent | e67a1391d51a5a3631adf3893365fe1ce6a7ea72 (diff) | |
download | aur-88fdc6b9c742fff0e2bd7e52fec07efa62ba39f0.tar.gz |
rewritten pkgver (advice from a TU)
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 7 insertions, 7 deletions
@@ -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 @@ -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 |