updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python-graph / PKGBUILD
blob02ad0ee9b81d705e9b7dfac39a97b010737a0071
1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
2 # Contributor: Ryan Coyner <rcoyner@gmail.com>
4 pkgname=python-graph
5 pkgver=1.8.0
6 pkgrel=1
7 pkgdesc="A library for working with graphs in Python"
8 arch=('any')
9 url="http://code.google.com/p/python-graph/"
10 license=('MIT')
11 depends=('python2' 'pydot' 'pyparsing')
12 makedepends=('setuptools' 'epydoc')
13 source=(http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.bz2)
14 md5sums=('8c5fbf993244c39ce42506425b5f30ac')
16 build() {
17   cd $srcdir/$pkgname-$pkgver
18   make docs
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
21   
22   # docs files
23   install -m755 -d $pkgdir/usr/share/doc/python-graph/
24   install -Dm644 $srcdir/$pkgname-$pkgver/docs/* $pkgdir/usr/share/doc/python-graph/
25   
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/