From 77539a71a7ae2deaa736d497a5bd8d60061367ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 14 Feb 2019 12:05:42 +0100 Subject: Add missing pkgver computation --- .SRCINFO | 6 ++++-- PKGBUILD | 15 ++++++++++----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 795feca..82efc60 100644 --- 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 diff --git a/PKGBUILD b/PKGBUILD index ded3b6c..b63d005 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Immae 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}" } -- cgit v1.2.3