summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMatthew Hague2017-11-01 18:01:12 +0000
committerMatthew Hague2017-11-01 18:01:12 +0000
commit19b35ddb1cc836dfda83eef32eeb784129bc73e0 (patch)
tree7710f6bf34249821d54d8461daf22ba426364517 /PKGBUILD
parent9cd97e751063794ab1e9486e5a6229d8d461aba7 (diff)
downloadaur-nodejs-imapnotify-git.tar.gz
Use git version with tag
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 22fb5f29293..48b73d3c5bd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_npmname=imapnotify
pkgname=nodejs-imapnotify-git
-pkgver=r30.a37456c
+pkgver=0.2.0.r6.ga37456c
pkgrel=1
pkgdesc='Execute scripts on new messages using IDLE imap command'
arch=(any)
@@ -20,7 +20,7 @@ sha256sums=('SKIP'
pkgver() {
cd "$pkgname"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {