archrelease: copy trunk to testing-x86_64
[arch-packages.git] / openbabel / trunk / PKGBUILD
blob35c9f6a2f13fab3fbf1ec626b4590c7480688e2d
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Damir Perisa <damir.perisa@bluewin.ch>
5 pkgbase=openbabel
6 pkgname=(openbabel python-openbabel)
7 pkgver=3.1.1
8 pkgrel=4
9 pkgdesc='A library designed to interconvert between many file formats used in molecular modeling and computational chemistry'
10 arch=(x86_64)
11 url='https://openbabel.org/wiki/Main_Page'
12 license=(GPL)
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')
17 build() {
18   cmake -B build -S openbabel-$pkgver \
19     -DCMAKE_INSTALL_PREFIX=/usr \
20     -DRUN_SWIG=ON \
21     -DPYTHON_BINDINGS=ON
22   cmake --build build
24   # To split python bindings
25   sed -i '/scripts.cmake_install.cmake/d' build/cmake_install.cmake
28 package_openbabel() {
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