]> git.immae.eu Git - perso/Immae/Config/AUR.git/commitdiff
Add missing pkgver computation
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 14 Feb 2019 11:05:42 +0000 (12:05 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 14 Feb 2019 11:05:42 +0000 (12:05 +0100)
.SRCINFO
PKGBUILD

index 795feca45895931f406e49d60b545903f3de1a0b..82efc60148067f9c5181bef80183f4a4888d85f0 100644 (file)
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,8 @@
+# Generated by mksrcinfo v8
+# Thu Feb 14 11:05:40 UTC 2019
 pkgbase = patacrep-git
        pkgdesc = Engine for LaTeX songbooks
-       pkgver = 20150614
+       pkgver = v5.1.2.r17.g30eb8d62
        pkgrel = 1
        url = http://www.patacrep.com
        arch = any
@@ -15,7 +17,7 @@ pkgbase = patacrep-git
        depends = texlive-latexextra
        depends = python-argparse
        depends = lilypond
-       source = patacrep::git://github.com/patacrep/patacrep.git#branch=master
+       source = patacrep-git::git://github.com/patacrep/patacrep.git#branch=master
        sha256sums = SKIP
 
 pkgname = patacrep-git
index ded3b6c6fa43dd98b24c4dd5daeddd6b27befdc8..b63d005695132ae863fe11c034753bb25162bdb7 100644 (file)
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Immae <ismael.bouya@normalesup.org>
 
 pkgname=patacrep-git
-pkgver=20150614
+pkgver=v5.1.2.r17.g30eb8d62
 pkgrel=1
 pkgdesc="Engine for LaTeX songbooks"
 arch=('any')
@@ -11,16 +11,21 @@ depends=('python' 'python-ply' 'python-jinja' 'python-chardet'
          'python-unidecode' 'texlive-fontsextra' 'texlive-latexextra'
          'python-argparse' 'lilypond')
 makedepends=('python-setuptools')
-source=("patacrep::git://github.com/patacrep/patacrep.git#branch=master")
-sha256sums=(SKIP)
+source=("patacrep-git::git://github.com/patacrep/patacrep.git#branch=master")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd "$srcdir/$pkgname"
+  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
 
 build() {
-  cd "$srcdir/patacrep"
+  cd "$srcdir/$pkgname"
   python setup.py build
 }
 
 package(){
-  cd "$srcdir/patacrep"
+  cd "$srcdir/$pkgname"
   python setup.py install --root="${pkgdir}"
 }