summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fa22a02949dd61837a788f499d7212f401b55023 (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
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
}