summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 95262e7757a5e0cefe2392f1cef46607e8ea75b6 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: AndrĂ¡s Wacha <awacha@gmail.com>

pkgname=(python2-openbabel)
pkgver=3.0.0
pkgrel=1
pkgdesc="A library designed to interconvert between many file formats used in molecular modeling and computational chemistry: Python2 bindings"
arch=('i686' 'x86_64')
depends=('python2' 'openbabel' 'wxgtk' 'eigen' 'boost-libs' 'python-rapidjson' 'libxml2')
url="http://openbabel.org/wiki/Main_Page"
license=('GPL')

makedepends=('cmake' 'boost' 'swig')
source=("https://github.com/openbabel/openbabel/archive/openbabel-3-0-0.tar.gz")
md5sums=('4c0ba0ce5dac240b51dded72f69edbc0')

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../openbabel-openbabel-3-0-0 \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config \
    -DPYTHON_BINDINGS=ON \
    -DBINDINGS_ONLY=ON \
    -DRUN_SWIG=ON \
    -DPYTHON_EXECUTABLE=/usr/bin/python2
  make
}


package() {
  cd build/scripts
  make DESTDIR="$pkgdir" install
}