[arch-commits] Commit in openbabel/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed May 6 08:06:45 UTC 2020


    Date: Wednesday, May 6, 2020 @ 08:06:44
  Author: arojas
Revision: 382372

archrelease: copy trunk to staging-x86_64

Added:
  openbabel/repos/staging-x86_64/
  openbabel/repos/staging-x86_64/PKGBUILD
    (from rev 382371, openbabel/trunk/PKGBUILD)

----------+
 PKGBUILD |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

Copied: openbabel/repos/staging-x86_64/PKGBUILD (from rev 382371, openbabel/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-05-06 08:06:44 UTC (rev 382372)
@@ -0,0 +1,47 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Damir Perisa <damir.perisa at bluewin.ch>
+
+pkgbase=openbabel
+pkgname=(openbabel python-openbabel)
+pkgver=3.1.0
+pkgrel=1
+pkgdesc="A library designed to interconvert between many file formats used in molecular modeling and computational chemistry"
+arch=('x86_64')
+url="https://openbabel.org/wiki/Main_Page"
+license=('GPL')
+makedepends=('cmake' 'eigen' 'wxgtk3' 'boost' 'python' 'swig' 'maeparser' 'rapidjson' 'coordgen')
+source=("https://github.com/openbabel/openbabel/releases/download/openbabel-${pkgver//./-}/openbabel-$pkgver-source.tar.bz2")
+sha256sums=('53ff96d53a190097d9a0d5243be2b7c97a6a844129a303e93cbe6e3aaf1723f9')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../openbabel-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3 \
+    -DRUN_SWIG=ON \
+    -DPYTHON_BINDINGS=ON
+  make
+
+  # To split python bindings
+  sed -i '/scripts.cmake_install.cmake/d' cmake_install.cmake
+}
+
+package_openbabel() {
+  depends=('libxml2' 'libsm')
+  optdepends=('wxgtk3: GUI interface' 'maeparser: maestro format support')
+
+  cd build
+  make DESTDIR="$pkgdir" install
+}
+
+package_python-openbabel() {
+  depends=('python' 'openbabel')
+
+  cd build/scripts
+  make DESTDIR="$pkgdir" install
+}


More information about the arch-commits mailing list