]> git.immae.eu Git - perso/Immae/Config/AUR.git/commitdiff
Fix package version containing a "v"
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 14 Feb 2019 12:42:52 +0000 (13:42 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 14 Feb 2019 12:42:52 +0000 (13:42 +0100)
.SRCINFO
PKGBUILD

index 82efc60148067f9c5181bef80183f4a4888d85f0..b4bc449a7257d3e22cd5c4d6db0b379b96adbf79 100644 (file)
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
 # Generated by mksrcinfo v8
-# Thu Feb 14 11:05:40 UTC 2019
+# Thu Feb 14 12:42:48 UTC 2019
 pkgbase = patacrep-git
        pkgdesc = Engine for LaTeX songbooks
-       pkgver = v5.1.2.r17.g30eb8d62
+       pkgver = 5.1.2.r17.g30eb8d62
        pkgrel = 1
        url = http://www.patacrep.com
        arch = any
index b63d005695132ae863fe11c034753bb25162bdb7..19d0553b9d5c0c4a4d8ce6b9aecc8a022a0c2a3b 100644 (file)
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Immae <ismael.bouya@normalesup.org>
 
 pkgname=patacrep-git
-pkgver=v5.1.2.r17.g30eb8d62
+pkgver=5.1.2.r17.g30eb8d62
 pkgrel=1
 pkgdesc="Engine for LaTeX songbooks"
 arch=('any')
@@ -16,7 +16,7 @@ sha256sums=('SKIP')
 
 pkgver() {
   cd "$srcdir/$pkgname"
-  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+  git describe --long --tags | sed -e 's/\([^-]*-g\)/r\1/;s/-/./g' -e "s/^v//"
 }
 
 build() {