diff options
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 7 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = weeplugins-git pkgdesc = WeeChat plugins: NickServ handling, trigger commands on messages, command to send text/command to specific buffer - pkgver = 0.1.1 + pkgver = r9.81c10d5 pkgrel = 1 url = https://github.com/jjk-jacky/weeplugins arch = i686 @@ -12,4 +12,3 @@ pkgbase = weeplugins-git md5sums = SKIP pkgname = weeplugins-git - @@ -1,7 +1,7 @@ # Maintainer: jjacky _pkgname=weeplugins pkgname=$_pkgname-git -pkgver=0.1.1 +pkgver=r9.81c10d5 pkgrel=1 pkgdesc="WeeChat plugins: NickServ handling, trigger commands on messages, command to send text/command to specific buffer" arch=('i686' 'x86_64') @@ -12,6 +12,11 @@ makedepends=('git') source=("git+https://github.com/jjk-jacky/${_pkgname}.git") md5sums=('SKIP') +pkgver() { + cd "$srcdir/$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + build() { cd "$srcdir/$_pkgname" make |