1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
2 # Contributor: Ryan Coyner <rcoyner@gmail.com>
7 pkgdesc="A library for working with graphs in Python"
9 url="http://code.google.com/p/python-graph/"
11 depends=('python2' 'pydot' 'pyparsing')
12 makedepends=('setuptools' 'epydoc')
13 source=(http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.bz2)
14 md5sums=('8c5fbf993244c39ce42506425b5f30ac')
17 cd $srcdir/$pkgname-$pkgver
19 cd $srcdir/$pkgname-$pkgver/core && python2 setup.py install --root=$pkgdir/ --optimize=1
20 cd $srcdir/$pkgname-$pkgver/dot && python2 setup.py install --root=$pkgdir/ --optimize=1
23 install -m755 -d $pkgdir/usr/share/doc/python-graph/
24 install -Dm644 $srcdir/$pkgname-$pkgver/docs/* $pkgdir/usr/share/doc/python-graph/
26 # Move COPYING to "licenses" dir
27 install -m755 -d $pkgdir/usr/share/licenses/python-graph
28 install -Dm644 $srcdir/$pkgname-$pkgver/COPYING \
29 $pkgdir/usr/share/licenses/python-graph/