From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/python-openbabel/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 community/python-openbabel/PKGBUILD (limited to 'community/python-openbabel') diff --git a/community/python-openbabel/PKGBUILD b/community/python-openbabel/PKGBUILD new file mode 100644 index 000000000..955c95b44 --- /dev/null +++ b/community/python-openbabel/PKGBUILD @@ -0,0 +1,37 @@ +# $Id: PKGBUILD 40381 2011-02-23 18:15:16Z stephane $ +# Maintainer: Andrea Scarpino +# Contributor: Michal Bozon + +pkgname=python-openbabel +pkgver=2.3.0 +pkgrel=3 +pkgdesc="Python bindings of openbabel library" +arch=('i686' 'x86_64') +url="http://openbabel.org/wiki/Python" +license=('GPL') +depends=('python' 'gcc-libs' "openbabel=${pkgver}" 'eigen') +makedepends=('swig' 'cmake') +options=('!libtool') +source=(http://downloads.sourceforge.net/openbabel/openbabel-$pkgver.tar.gz) +md5sums=('effda01ed4a31d18d8e3d08191799608') + +build() { + cd "${srcdir}/openbabel-$pkgver" + + # Create babelconfig.h + cmake . + + # Regenerate interface with the patched swig 2.0.2 + cd scripts + swig -I../include/ -python -c++ openbabel-python.i + mv openbabel-python_wrap.cxx python/openbabel-python.cpp + mv openbabel.py python/ + + cd python + sed -i '19i os.path.join("/usr/include/openbabel-2.0"),' setup.py +} + +package() { + cd "${srcdir}/openbabel-$pkgver/scripts/python" + python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 +} -- cgit v1.2.3-54-g00ecf