summaryrefslogtreecommitdiff
path: root/community/python-openbabel/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-22 02:31:09 -0800
committerroot <root@rshg054.dnsready.net>2012-11-22 02:31:09 -0800
commit38ea2e71952c00f18230ed0e691532aadff4e2c1 (patch)
treebc1c7cfd697773062d53a0a23b35afdb0fc775c2 /community/python-openbabel/PKGBUILD
parentf48f6c82e23a3bacb8a0952c2d2cf9af1e6bf42d (diff)
Thu Nov 22 02:27:52 PST 2012
Diffstat (limited to 'community/python-openbabel/PKGBUILD')
-rw-r--r--community/python-openbabel/PKGBUILD54
1 files changed, 37 insertions, 17 deletions
diff --git a/community/python-openbabel/PKGBUILD b/community/python-openbabel/PKGBUILD
index f94a6bac3..a826601e6 100644
--- a/community/python-openbabel/PKGBUILD
+++ b/community/python-openbabel/PKGBUILD
@@ -1,22 +1,25 @@
-# $Id: PKGBUILD 78233 2012-10-17 10:26:13Z allan $
-# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# $Id: PKGBUILD 80457 2012-11-22 01:42:13Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Michal Bozon <bozonm@vscht.cz>
-pkgname=python-openbabel
-pkgver=2.3.1
-pkgrel=3
-pkgdesc="Python bindings of openbabel library"
-arch=('i686' 'x86_64')
-url="http://openbabel.org/wiki/Python"
+pkgname=('python-openbabel' 'python2-openbabel')
+pkgver=2.3.2
+pkgrel=1
+pkgdesc='Python bindings for the openbabel library'
+arch=('x86_64' 'i686')
+url='http://openbabel.org/wiki/Python'
license=('GPL')
-depends=('python' 'gcc-libs' "openbabel=${pkgver}" 'eigen2')
-makedepends=('swig' 'cmake')
+depends=('gcc-libs' "openbabel=${pkgver}" 'eigen2')
+makedepends=('swig' 'cmake' 'python-distribute' 'python2-distribute')
options=('!libtool')
-source=(http://downloads.sourceforge.net/openbabel/openbabel-$pkgver.tar.gz)
-md5sums=('1f029b0add12a3b55582dc2c832b04f8')
+source=("http://downloads.sourceforge.net/openbabel/openbabel-$pkgver.tar.gz")
+sha256sums=('4eaca26679aa6cc85ebf96af19191472ac63ca442c36b0427b369c3a25705188')
build() {
- cd "${srcdir}/openbabel-$pkgver"
+ cp -r openbabel-$pkgver python2-openbabel-$pkgver
+
+ cd $srcdir/openbabel-$pkgver
# Create babelconfig.h
cmake .
@@ -29,10 +32,27 @@ build() {
cd python
sed -i '19i os.path.join("/usr/include/openbabel-2.0"),' setup.py
- sed -i '20i os.path.join("/usr/include/eigen2"),' setup.py
+ sed -i '20i os.path.join("/usr/include/eigen2"),' setup.py
+
+ cd $srcdir/python2-openbabel-$pkgver/scripts/python
+ sed -i '19i os.path.join("/usr/include/openbabel-2.0"),' setup.py
+ sed -i '20i os.path.join("/usr/include/eigen2"),' setup.py
+}
+
+package_python-openbabel() {
+ depends+=('python')
+
+ cd "$srcdir/openbabel-$pkgver/scripts/python"
+
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}
-package() {
- cd "${srcdir}/openbabel-$pkgver/scripts/python"
- python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+package_python2-openbabel() {
+ depends+=('python2')
+
+ cd "$srcdir/python2-openbabel-$pkgver/scripts/python"
+
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}
+
+# vim:set ts=2 sw=2 et: