[arch-commits] Commit in avogadrolibs/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Sat Dec 3 22:21:55 UTC 2016


    Date: Saturday, December 3, 2016 @ 22:21:54
  Author: arojas
Revision: 282807

Update to 1.90

Modified:
  avogadrolibs/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++--------------
 1 file changed, 9 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-12-03 22:10:07 UTC (rev 282806)
+++ PKGBUILD	2016-12-03 22:21:54 UTC (rev 282807)
@@ -1,25 +1,23 @@
 # Maintainer: Antonio Rojas <arojas at archlinux.org>
 
 pkgname=avogadrolibs
-pkgver=0.9.0
-pkgrel=2
+pkgver=1.90.0
+pkgrel=1
 pkgdesc="An advanced molecular editor"
 arch=(i686 x86_64)
 url="http://www.openchemistry.org/"
 license=(custom)
-depends=(openbabel qt5-base glew)
+depends=(molequeue openbabel glew spglib)
 makedepends=(cmake eigen python2 boost)
-source=("http://downloads.sourceforge.net/project/avogadro/avogadro2/$pkgver/$pkgname-$pkgver.tar.gz"
-        avogadrolibs-gcc6.patch::"https://github.com/OpenChemistry/molequeue/commit/5d57279d.patch")
-md5sums=('af5c0a0c782cfa528d1c203840c69cf6'
-         'd57372453ba647ea741b0efb7e50dc50')
+source=($pkgname-$pkgver.tar.gz::"https://github.com/OpenChemistry/avogadrolibs/archive/$pkgver.tar.gz")
+md5sums=('f2b7014f48da5b2a72d49c01dafaf225')
 
 prepare() {
   mkdir -p build
 
-# Fix GCC6 detection
-  cd $pkgname-$pkgver
-  patch -p1 -i ../avogadrolibs-gcc6.patch
+# Find spglib
+  sed -e 's|NAMES spglib|NAMES spglib symspg|' -i $pkgname-$pkgver/cmake/FindSpglib.cmake
+
 }
 
 build() {
@@ -26,10 +24,7 @@
   cd build
   cmake ../$pkgname-$pkgver \
     -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_INSTALL_LIBDIR=lib \
-    -DBUILD_SHARED_LIBS=ON \
-    -DUSE_QT=ON \
-    -DUSE_OPENGL=ON
+    -DCMAKE_INSTALL_LIBDIR=lib
   make
 }
 



More information about the arch-commits mailing list