[arch-commits] Commit in python-igraph/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Jul 8 09:42:59 UTC 2018
Date: Sunday, July 8, 2018 @ 09:42:59
Author: felixonmars
Revision: 354709
archrelease: copy trunk to community-staging-x86_64
Added:
python-igraph/repos/community-staging-x86_64/
python-igraph/repos/community-staging-x86_64/PKGBUILD
(from rev 354708, python-igraph/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-igraph/repos/community-staging-x86_64/PKGBUILD (from rev 354708, python-igraph/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-07-08 09:42:59 UTC (rev 354709)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Lukasz Pozarlik <lpozarlik at gmail.com>
+
+pkgbase=python-igraph
+pkgname=(python-igraph python2-igraph)
+pkgver=0.7.1.post6
+pkgrel=5
+url="http://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"
+ igraph-python3.patch::"https://github.com/igraph/python-igraph/commit/8864b468.patch")
+sha256sums=('a5ea42790a077eadb3d1e8f82edc47516fea4a2b26bbf52bfc148370fe0fe676'
+ '2ae94434dca55c4a7afbfc292e308aea48c647e737a73fd5c3a2d3f2b2dc24dc')
+
+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
+}
+
+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)
+
+ 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}
+}
More information about the arch-commits
mailing list