mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
41 lines
1.0 KiB
Bash
41 lines
1.0 KiB
Bash
# Contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/avogadrolibs/
|
|
|
|
pkgname=avogadrolibs
|
|
pkgver=1.90.0
|
|
pkgrel=2
|
|
pkgdesc="An advanced molecular editor"
|
|
arch=(x86_64)
|
|
url="http://www.openchemistry.org/"
|
|
license=(custom)
|
|
depends=(molequeue openbabel qt5-base glew spglib hdf5)
|
|
makedepends=(cmake eigen3 python2 boost)
|
|
source=($pkgname-$pkgver.tar.gz::"https://github.com/OpenChemistry/avogadrolibs/archive/$pkgver.tar.gz")
|
|
md5sums=('f2b7014f48da5b2a72d49c01dafaf225')
|
|
|
|
|
|
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 \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DUSE_HDF5=ON
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|