diff options
author | Wieland Hoffmann | 2016-07-07 19:59:08 +0200 |
---|---|---|
committer | Wieland Hoffmann | 2016-07-07 19:59:08 +0200 |
commit | 3607cecddd06b71504ab9d8a69e141d21c0dcac4 (patch) | |
tree | e6a99daf57151985a9a758430bba9e6035083dca | |
parent | 2661a477a333f3d4dde22a28e7c38186edf851db (diff) | |
download | aur-lala-git.tar.gz |
Update the pkgver generation
The new command is taken from
https://git.archlinux.org/pacman.git/tree/proto/PKGBUILD-vcs.proto#n46
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -1,6 +1,8 @@ +# Generated by mksrcinfo v8 +# Thu Jul 7 17:59:05 UTC 2016 pkgbase = lala-git pkgdesc = irc bot - pkgver = 0.2_129_g891b782 + pkgver = 0.4.r61.f876246 pkgrel = 1 url = https://github.com/mineo/lala arch = any @@ -1,5 +1,5 @@ pkgname=lala-git -pkgver=0.2_129_g891b782 +pkgver=0.4.r61.f876246 pkgrel=1 pkgdesc="irc bot" arch=("any") @@ -13,7 +13,7 @@ md5sums=('SKIP') pkgver(){ cd "$srcdir/lala" - echo "$(git describe --tags --always | sed 's/-/_/g')" + printf "%s" "$(git describe --long --tags| sed 's/\([^-]*-\)g/r\1/;s/-/./g')" } package() { |