[arch-commits] Commit in avogadrolibs/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sun Feb 9 10:51:10 UTC 2020
Date: Sunday, February 9, 2020 @ 10:51:10
Author: arojas
Revision: 375119
Enable mmtf, hdf5, vtk and python (FS#65430)
Modified:
avogadrolibs/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-02-09 10:43:49 UTC (rev 375118)
+++ PKGBUILD 2020-02-09 10:51:10 UTC (rev 375119)
@@ -2,13 +2,14 @@
pkgname=avogadrolibs
pkgver=1.93.0
-pkgrel=1
+pkgrel=2
pkgdesc="Libraries that provide 3D rendering, visualization, analysis and data processing useful in computational chemistry, molecular modeling, bioinformatics, materials science, and related areas"
arch=(x86_64)
url="https://www.openchemistry.org/"
license=(custom)
-depends=(molequeue glew spglib libmsym libarchive)
-makedepends=(cmake eigen boost python)
+depends=(molequeue glew spglib libmsym libarchive hdf5)
+makedepends=(cmake eigen boost python mmtf-cpp pybind11 vtk qt5-tools genxrdpattern)
+optdepends=('vtk: For the Qt plugins')
source=($pkgname-$pkgver.tar.gz::"https://github.com/OpenChemistry/avogadrolibs/archive/$pkgver.tar.gz")
sha256sums=('01fea1f3b21c69091c60739616f86123db92f445e4c9ca53f1dec09624aceab4')
@@ -20,7 +21,11 @@
cd build
cmake ../$pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DUSE_MMTF=OFF
+ -DENABLE_TRANSLATIONS=ON \
+ -DUSE_HDF5=ON \
+ -DUSE_VTK=ON \
+ -DUSE_PYTHON=ON \
+ -DUSE_SYSTEM_GENXRDPATTERN=ON
make
}
@@ -28,4 +33,9 @@
cd build
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+
+# Move python module to the correct place
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ mkdir -p "$pkgdir${site_packages}"
+ mv "$pkgdir"/usr/lib/avogadro "$pkgdir${site_packages}"
}
More information about the arch-commits
mailing list