summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authoroneup2017-11-30 23:44:14 -0500
committeroneup2017-11-30 23:44:14 -0500
commit9fc93627bb81f0a4ed288a78fdb9bc3ae865e92a (patch)
treec9709501742689ab50b91db6025f76e4a1e2503a /PKGBUILD
downloadaur-python2-networkx-1.11.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fa22a02949d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+#Automatically generated by pip2arch on 2017-11-21
+
+# Maintainer: oneup <oneup40 at gmail dot com>
+
+pkgname=python2-networkx-1.11
+pkgver=1.11
+pkgrel=1
+pkgdesc="Python package for creating and manipulating graphs and networks"
+provides=('python2-networkx==1.11')
+conflicts=('python2-networkx')
+url="http://networkx.github.io/"
+depends=('python2' )
+makedepends=('python2-distribute' )
+license=('BSD')
+arch=('any')
+source=('https://pypi.python.org/packages/3b/d4/1b6ca16678d13ffd426bcd199231f3d5effaa6d234747fb88899e649dec3/networkx-1.11.zip'
+ 'https://raw.githubusercontent.com/networkx/networkx/v1.11/LICENSE.txt')
+md5sums=('c7690890aa28eb2e061f9e50c20ebada'
+ '925586ea588eb990de840dc71ea3752f')
+
+build() {
+ cd $srcdir/networkx-1.11
+ for f in $(find . -name "*.py") ; do
+ sed -i 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|' $f
+ done
+ python2 setup.py build
+}
+
+package() {
+ cd $srcdir/networkx-1.11
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 $srcdir/LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}