summaryrefslogtreecommitdiff
path: root/community/python2-openbabel/PKGBUILD
blob: d7376972f13ca94637099a24563e96e71337516d (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 57091 2011-10-21 05:24:19Z kchen $
# 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=1
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}
}