Date: Thursday, January 2, 2020 @ 00:20:13 Author: arojas Revision: 546007
Drop python2 Modified: python-igraph/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-01-02 00:17:22 UTC (rev 546006) +++ PKGBUILD 2020-01-02 00:20:13 UTC (rev 546007) @@ -1,15 +1,15 @@ # Maintainer: Antonio Rojas <[email protected]> # Contributor: Lukasz Pozarlik <[email protected]> -pkgbase=python-igraph -pkgname=(python-igraph python2-igraph) +pkgname=python-igraph pkgver=0.7.1.post6 pkgrel=6 url="https://igraph.org/python/" license=(GPL) arch=(x86_64) -makedepends=(python python2 igraph) -source=("https://pypi.python.org/packages/source/p/$pkgbase/$pkgbase-$pkgver.tar.gz" +pkgdesc="Python bindings for the igraph library" +depends=(igraph python) +source=("https://pypi.python.org/packages/source/p/$pkgname/$pkgname-$pkgver.tar.gz" igraph-python3.patch::"https://github.com/igraph/python-igraph/commit/8864b468.patch") sha256sums=('a5ea42790a077eadb3d1e8f82edc47516fea4a2b26bbf52bfc148370fe0fe676' '2ae94434dca55c4a7afbfc292e308aea48c647e737a73fd5c3a2d3f2b2dc24dc') @@ -16,35 +16,15 @@ prepare() { cd $pkgbase-$pkgver - patch -p1 -i ../igraph-python3.patch # fixed Plot._repr_svg_() on Python 3.x - cd .. - - cp -r $pkgbase-$pkgver{,-python2} - - sed -e 's|/usr/bin/env python|/usr/bin/env/python2|g' -i $pkgbase-$pkgver-python2/igraph/vendor/texttable.py + patch -p1 -i ../igraph-python3.patch # fixed Plot._repr_svg_() on Python 3.x } build() { cd $pkgbase-$pkgver python setup.py build - - cd ../$pkgbase-$pkgver-python2 - python2 setup.py build } -package_python-igraph() { - pkgdesc="Python bindings for the igraph library" - depends=(igraph python) - +package() { cd $pkgbase-$pkgver python setup.py install --root="$pkgdir" --optimize=1 } - -package_python2-igraph() { - pkgdesc="Python 2 bindings for the igraph library" - depends=(igraph python2) - - cd $pkgbase-$pkgver-python2 - python2 setup.py install --root="$pkgdir" --optimize=1 - mv "$pkgdir"/usr/bin/igraph{,2} -}
