diff options
author | Michal Wojdyla | 2021-06-23 03:24:34 +0200 |
---|---|---|
committer | Michal Wojdyla | 2021-06-23 03:24:34 +0200 |
commit | 73dc6ed7d26df48fcfbf25ba5cbd02860466011c (patch) | |
tree | 5029ad54aaf5e03281b2fed36c73b10ad648e3a6 | |
parent | 841ea60ee251e9d388894384e6619f40089eebf3 (diff) | |
download | aur-weeplugins-git.tar.gz |
add pkgver
-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 |