summaryrefslogtreecommitdiff
path: root/community/python2-openbabel/PKGBUILD
blob: e92bf168d1ca7da54e24f46820147633948f3980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# $Id: PKGBUILD 67419 2012-03-11 14:36:28Z cbrannon $
# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Michal Bozon <bozonm@vscht.cz>

pkgname=python2-openbabel
pkgver=2.3.1
pkgrel=2
pkgdesc="Python 2 bindings of openbabel library"
arch=('i686' 'x86_64')
url="http://openbabel.org/wiki/Python"
license=('GPL')
depends=('python2' 'gcc-libs' "openbabel=${pkgver}" 'eigen')
makedepends=('swig')
options=('!libtool')
source=(http://downloads.sourceforge.net/openbabel/openbabel-$pkgver.tar.gz)
md5sums=('1f029b0add12a3b55582dc2c832b04f8')

package() {
  cd ${srcdir}/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
  python2 setup.py install --prefix=/usr --root=${pkgdir}
}