[arch-commits] Commit in dub/trunk (PKGBUILD)

Михаил Страшун dicebot at archlinux.org
Tue Feb 17 10:04:22 UTC 2015


    Date: Tuesday, February 17, 2015 @ 11:04:22
  Author: dicebot
Revision: 127836

upgpkg: dub 0.9.22-2

dub: remove leading 'v' from version number

Modified:
  dub/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-02-17 09:12:07 UTC (rev 127835)
+++ PKGBUILD	2015-02-17 10:04:22 UTC (rev 127836)
@@ -1,8 +1,8 @@
 # Maintainer:  Mihails Strasuns <public at dicebot.lv>
 # Contributor: Moritz Maxeiner <moritz at ucworks.org>
 pkgname=dub
-pkgver=v0.9.22.r198.g83b2926
-pkgrel=1
+pkgver=0.9.22
+pkgrel=2
 pkgdesc="Developer package manager for D programming language"
 arch=('i686' 'x86_64')
 url="https://github.com/D-Programming-Language/dub"
@@ -24,8 +24,9 @@
 pkgver() {
   cd "$srcdir/$pkgname"
   ( set -o pipefail
-    git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
-    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+    ver=`git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g'`
+    # remove leading 'v'
+    echo ${ver:1}
   )
 }
 



More information about the arch-commits mailing list