[arch-commits] Commit in avogadrolibs/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Thu Nov 11 18:49:42 UTC 2021
Date: Thursday, November 11, 2021 @ 18:49:42
Author: arojas
Revision: 427899
Split Qt plugins to a separate package and move all vtk inherited dependencies there
Modified:
avogadrolibs/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++++++++++++++------
1 file changed, 24 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-11 17:33:28 UTC (rev 427898)
+++ PKGBUILD 2021-11-11 18:49:42 UTC (rev 427899)
@@ -1,15 +1,16 @@
# Maintainer: Antonio Rojas <arojas at archlinux.org>
-pkgname=avogadrolibs
+pkgbase=avogadrolibs
+pkgname=(avogadrolibs avogadrolibs-qt5)
pkgver=1.95.1
-pkgrel=4
+pkgrel=5
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 hdf5 qt5-svg avogadro-molecules avogadro-crystals)
-makedepends=(cmake eigen boost python mmtf-cpp pybind11 vtk qt5-tools genxrdpattern tbb openmpi)
-optdepends=('vtk: For the Qt plugins')
+depends=(molequeue glew spglib hdf5 avogadro-molecules avogadro-crystals)
+makedepends=(cmake eigen boost python mmtf-cpp libmsym pybind11 vtk qt5-tools qt5-svg genxrdpattern tbb openmpi)
+optdepends=('avogadrolibs-qt5: For the VTK and Qt plugins')
source=(https://github.com/OpenChemistry/avogadrolibs/archive/$pkgver/$pkgname-$pkgver.tar.gz
vtk9.patch)
sha256sums=('52817eebfc0cf700e5f6c0c4455b460618ec0dd7cb4ede5d8fabc5a2d73a7816'
@@ -31,8 +32,14 @@
cmake --build build
}
-package() {
+package_avogadrolibs() {
DESTDIR="$pkgdir" cmake --install build
+ rm -r "$pkgdir"/usr/lib/libAvogadroQt* \
+ "$pkgdir"/usr/lib/libAvogadroMoleQueue* \
+ "$pkgdir"/usr/lib/libAvogadroVtk* \
+ "$pkgdir"/usr/include/avogadro/{molequeue,qt*,vtk} \
+ "$pkgdir"/usr/lib/avogadro2/{scripts,staticplugins}
+
install -Dm644 $pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
# Move python module to the correct place
@@ -40,3 +47,14 @@
mkdir -p "$pkgdir${site_packages}"
mv "$pkgdir"/usr/lib/avogadro "$pkgdir${site_packages}"
}
+
+package_avogadrolibs-qt5() {
+ pkgdesc="Qt 5 modules for Avogadro"
+ depends=(qt5-svg libarchive libmsym avogadrolibs vtk openmpi pugixml fmt tbb)
+
+ DESTDIR="$pkgdir" cmake --install build/avogadro/molequeue
+ DESTDIR="$pkgdir" cmake --install build/avogadro/qtgui
+ DESTDIR="$pkgdir" cmake --install build/avogadro/qtopengl
+ DESTDIR="$pkgdir" cmake --install build/avogadro/qtplugins
+ DESTDIR="$pkgdir" cmake --install build/avogadro/vtk
+}
More information about the arch-commits
mailing list