2016-11-20 21:51:50 +08:00
|
|
|
# Contributions from Arch:
|
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=avogadrolibs
|
2016-12-16 09:53:01 +08:00
|
|
|
pkgver=1.90.0
|
2016-11-20 21:51:50 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="An advanced molecular editor"
|
2016-12-16 09:53:01 +08:00
|
|
|
arch=(x86_64)
|
2016-11-20 21:51:50 +08:00
|
|
|
url="http://www.openchemistry.org/"
|
|
|
|
license=(custom)
|
2016-12-16 09:53:01 +08:00
|
|
|
depends=(molequeue openbabel qt5-base glew spglib hdf5)
|
2016-11-20 21:51:50 +08:00
|
|
|
makedepends=(cmake eigen3 python2 boost)
|
2016-12-16 09:53:01 +08:00
|
|
|
source=($pkgname-$pkgver.tar.gz::"https://github.com/OpenChemistry/avogadrolibs/archive/$pkgver.tar.gz")
|
|
|
|
md5sums=('f2b7014f48da5b2a72d49c01dafaf225')
|
2016-11-20 21:51:50 +08:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
2016-12-16 09:53:01 +08:00
|
|
|
|
|
|
|
# Find spglib
|
|
|
|
sed -e 's|NAMES spglib|NAMES spglib symspg|' -i $pkgname-$pkgver/cmake/FindSpglib.cmake
|
2016-11-20 21:51:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
|
|
|
cmake ../$pkgname-$pkgver \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
2016-12-16 09:53:01 +08:00
|
|
|
-DUSE_HDF5=ON
|
2016-11-20 21:51:50 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
|
|
}
|