summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ce054c630522a398d13d613b943f0e7c4f68b19 (plain)
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
# Mantainer: Michael M. Tung <mtung at mat dot upv dot es>

pkgname=pandoc-numbering
pkgver=3.0.2.r28.g8a69fd5
pkgrel=1
pkgdesc='A pandoc filter for numbering all kinds of things.'
url='https://github.com/chdemko/pandoc-numbering'
depends=('pandoc' 'python' 'python-pandocfilters' 'pandoc-xnos' 'python-pypandoc' 'python-panflute')
license=('BSD3')
arch=('any')

makedepends=('git')
provides=('pandoc-numbering-git')
conflicts=('pandoc-numbering-git')

source=('git://github.com/chdemko/pandoc-numbering.git')
md5sums=('SKIP')

pkgver() {
  cd ${srcdir}/pandoc-numbering
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    cd "$srcdir/pandoc-numbering"
    python setup.py install --root="$pkgdir" --optimize=1 
}