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

Antonio Rojas arojas at archlinux.org
Mon Mar 25 08:56:21 UTC 2019


    Date: Monday, March 25, 2019 @ 08:56:19
  Author: arojas
Revision: 349164

archrelease: copy trunk to staging-x86_64

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

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

Copied: openbabel/repos/staging-x86_64/PKGBUILD (from rev 349163, openbabel/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2019-03-25 08:56:19 UTC (rev 349164)
@@ -0,0 +1,46 @@
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Damir Perisa <damir.perisa at bluewin.ch>
+
+pkgbase=openbabel
+pkgname=(openbabel python-openbabel)
+pkgver=2.4.1
+pkgrel=6
+pkgdesc="A library designed to interconvert between many file formats used in molecular modeling and computational chemistry"
+arch=('x86_64')
+url="http://openbabel.org/wiki/Main_Page"
+license=('GPL')
+makedepends=('cmake' 'eigen' 'wxgtk' 'boost' 'python')
+source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+md5sums=('d9defcd7830b0592fece4fe54a137b99')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  #export CXXFLAGS+=' -std=gnu++98'
+  cmake ../openbabel-$pkgver \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config \
+    -DPYTHON_BINDINGS=ON
+  make
+
+  # To split python bindings
+  sed -i '/scripts.cmake_install.cmake/d' cmake_install.cmake
+}
+
+package_openbabel() {
+  depends=('libxml2' 'libsm')
+  optdepends=('wxgtk: GUI interface')
+
+  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