[arch-commits] Commit in avogadrolibs/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Wed Aug 22 17:36:52 UTC 2018
Date: Wednesday, August 22, 2018 @ 17:36:52
Author: arojas
Revision: 332821
archrelease: copy trunk to staging-x86_64
Added:
avogadrolibs/repos/staging-x86_64/
avogadrolibs/repos/staging-x86_64/PKGBUILD
(from rev 332820, avogadrolibs/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: avogadrolibs/repos/staging-x86_64/PKGBUILD (from rev 332820, avogadrolibs/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2018-08-22 17:36:52 UTC (rev 332821)
@@ -0,0 +1,40 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=avogadrolibs
+pkgver=1.91.0
+pkgrel=1
+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="http://www.openchemistry.org/"
+license=(custom)
+depends=(molequeue glew spglib libmsym libarchive)
+makedepends=(cmake eigen python2 boost)
+source=($pkgname-$pkgver.tar.gz::"https://github.com/OpenChemistry/avogadrolibs/archive/$pkgver.tar.gz")
+sha256sums=('752933c26b46dfbf12f7537b1f8dd9960a4fd29f0cccbed5b868b00474bb42af')
+
+prepare() {
+ mkdir -p build
+
+ cd $pkgname-$pkgver
+# Find spglib
+# sed -e 's|NAMES spglib|NAMES spglib symspg|' -i cmake/FindSpglib.cmake
+# Fix build with GCC>=7
+ # sed -e 's|3456|3456789|' -i cmake/GenerateExportHeader.cmake
+}
+
+build() {
+ cd build
+ cmake ../$pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DOpenGL_GL_PREFERENCE=GLVND
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+ install -Dm644 "$srcdir"/$pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+
+ rm "$pkgdir"/usr/lib/libjsoncpp.a # provided by jsoncpp
+}
More information about the arch-commits
mailing list