[arch-commits] Commit in python-igraph (5 files)
Antonio Rojas
arojas at archlinux.org
Mon Oct 12 10:59:21 UTC 2015
Date: Monday, October 12, 2015 @ 12:59:21
Author: arojas
Revision: 143761
archrelease: copy trunk to community-i686, community-x86_64
Added:
python-igraph/repos/
python-igraph/repos/community-i686/
python-igraph/repos/community-i686/PKGBUILD
(from rev 143760, python-igraph/trunk/PKGBUILD)
python-igraph/repos/community-x86_64/
python-igraph/repos/community-x86_64/PKGBUILD
(from rev 143760, python-igraph/trunk/PKGBUILD)
---------------------------+
community-i686/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++++++++++
community-x86_64/PKGBUILD | 45 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 90 insertions(+)
Copied: python-igraph/repos/community-i686/PKGBUILD (from rev 143760, python-igraph/trunk/PKGBUILD)
===================================================================
--- repos/community-i686/PKGBUILD (rev 0)
+++ repos/community-i686/PKGBUILD 2015-10-12 10:59:21 UTC (rev 143761)
@@ -0,0 +1,45 @@
+# $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=1
+url="http://igraph.org/python/"
+license=(GPL)
+arch=(i686 x86_64)
+makedepends=(python python2 igraph)
+source="https://pypi.python.org/packages/source/p/$pkgbase/$pkgbase-$pkgver.tar.gz"
+md5sums=('a4c0b5960735b36adb5d3a40031cb7c0')
+
+prepare() {
+ 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)
+ conflicts=(python-igraph)
+
+ cd $pkgbase-$pkgver-python2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
Copied: python-igraph/repos/community-x86_64/PKGBUILD (from rev 143760, python-igraph/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD (rev 0)
+++ repos/community-x86_64/PKGBUILD 2015-10-12 10:59:21 UTC (rev 143761)
@@ -0,0 +1,45 @@
+# $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=1
+url="http://igraph.org/python/"
+license=(GPL)
+arch=(i686 x86_64)
+makedepends=(python python2 igraph)
+source="https://pypi.python.org/packages/source/p/$pkgbase/$pkgbase-$pkgver.tar.gz"
+md5sums=('a4c0b5960735b36adb5d3a40031cb7c0')
+
+prepare() {
+ 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)
+ conflicts=(python-igraph)
+
+ cd $pkgbase-$pkgver-python2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list