1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Damir Perisa <damir.perisa@bluewin.ch>
6 pkgname=(openbabel python-openbabel)
9 pkgdesc='A library designed to interconvert between many file formats used in molecular modeling and computational chemistry'
11 url='https://openbabel.org/wiki/Main_Page'
13 makedepends=(cmake eigen wxwidgets-gtk3 boost python swig maeparser rapidjson coordgen)
14 source=(https://github.com/openbabel/openbabel/releases/download/openbabel-${pkgver//./-}/openbabel-$pkgver-source.tar.bz2)
15 sha256sums=('a6ec8381d59ea32a4b241c8b1fbd799acb52be94ab64cdbd72506fb4e2270e68')
18 cmake -B build -S openbabel-$pkgver \
19 -DCMAKE_INSTALL_PREFIX=/usr \
24 # To split python bindings
25 sed -i '/scripts.cmake_install.cmake/d' build/cmake_install.cmake
29 depends=(libxml2 libsm coordgen)
30 optdepends=('wxwidgets-gtk3: GUI interface')
32 DESTDIR="$pkgdir" cmake --install build
35 package_python-openbabel() {
36 depends=(python openbabel)
38 DESTDIR="$pkgdir" cmake --install build/scripts