aboutsummaryrefslogtreecommitdiff
path: root/patacrep-git/PKGBUILD
blob: 19d0553b9d5c0c4a4d8ce6b9aecc8a022a0c2a3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Immae <ismael.bouya@normalesup.org>

pkgname=patacrep-git
pkgver=5.1.2.r17.g30eb8d62
pkgrel=1
pkgdesc="Engine for LaTeX songbooks"
arch=('any')
url="http://www.patacrep.com"
license=('GPL')
depends=('python' 'python-ply' 'python-jinja' 'python-chardet'
         'python-unidecode' 'texlive-fontsextra' 'texlive-latexextra'
         'python-argparse' 'lilypond')
makedepends=('python-setuptools')
source=("patacrep-git::git://github.com/patacrep/patacrep.git#branch=master")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  git describe --long --tags | sed -e 's/\([^-]*-g\)/r\1/;s/-/./g' -e "s/^v//"
}

build() {
  cd "$srcdir/$pkgname"
  python setup.py build
}

package(){
  cd "$srcdir/$pkgname"
  python setup.py install --root="${pkgdir}"
}