summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 879fb163b421e6ecc5a26d8453aa993ee53318fb (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
31
32
# Maintainer: Walwe <aur@walwe.de>
pkgname=md2pdf-git
gitname=md2pdf
pkgver=0.0.5.r3.g5d033c3
pkgrel=1
pkgdesc="A Python Markdown to PDF Converter"
arch=('any')
url="https://github.com/walwe/${gitname}"
license=('MIT')
depends=('python-click' 'wkhtmltopdf' 'python-markdown2')
makedepends=('python' 'python-setuptools' 'git')
source=("git+${url}")
sha1sums=('SKIP')
provides=('md2pdf')

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


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

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

# vim:set ts=2 sw=2 et: