archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-railroad-diagrams / repos / community-any / PKGBUILD
blobfc400854c04261b16651f423cd9aa07929873e9c
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-railroad-diagrams
4 pkgver=3.0.1
5 _commit=c3a16b9dcb06f5d0ae2260f8414136917871d4c5
6 pkgrel=2
7 pkgdesc="Generate SVG railroad syntax diagrams, like on JSON.org."
8 url="https://github.com/tabatkins/railroad-diagrams"
9 license=('MIT')
10 arch=('any')
11 depends=('python')
12 makedepends=('git' 'python-setuptools')
13 source=("git+https://github.com/tabatkins/railroad-diagrams.git#commit=$_commit")
14 sha512sums=('SKIP')
16 build() {
17   cd railroad-diagrams
18   python setup.py build
21 check() {
22   cd railroad-diagrams
23   python railroad.py
26 package() {
27   cd railroad-diagrams
28   python setup.py install --root="$pkgdir" --optimize=1
30   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/