summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ef66ceb20eff61af7c9a4552433360975aedf4c4 (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
28
29
30
# Mantainer: Michael M. Tung <mtung at mat dot upv dot es>

pkgname=pandoc-panflute
pkgver=1.12
pkgrel=1
pkgdesc='A Python package that makes creating Pandoc filters fun.'
url='https://github.com/sergiocorreia/panflute'
depends=('pandoc' 'python' 'python-pandocfilters' 'python-shutilwhich' 'python-future')
license=('BSD3')
arch=('any')

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

source=('git://github.com/sergiocorreia/panflute.git')
md5sums=('SKIP')

pkgver() {
  curl -s https://raw.githubusercontent.com/sergiocorreia/panflute/master/panflute/version.py | tail -1 | sed -e "s/.*= '\(.*\)\..*'/\1/"
}

pkgrel() {
  curl -s https://raw.githubusercontent.com/sergiocorreia/panflute/master/panflute/version.py | tail -1 | sed -e "s/.*= '.*\..*\.\(.*\).*'/\1/"
}

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