39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
pkgname=spglib
|
|
pkgver=2.5.0
|
|
pkgrel=1
|
|
pkgdesc='C library for finding and handling crystal symmetries'
|
|
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
|
url='https://spglib.readthedocs.io/en/latest/'
|
|
license=(BSD-3-Clause)
|
|
depends=(glibc)
|
|
makedepends=(cmake
|
|
gcc-fortran
|
|
git
|
|
gtest
|
|
python
|
|
python-numpy)
|
|
optdepends=('gcc-libs: Fortran interface'
|
|
'python-numpy: Python interface')
|
|
source=(git+https://github.com/spglib/spglib#tag=v$pkgver)
|
|
sha256sums=('570b46d69e46d17dc0e8bc35c358df36334a8b08977791ee00cb9e48b31932b0')
|
|
|
|
prepare() {
|
|
sed -e 's|TARGET Spglib_symspg|0|' -i $pkgname/python/CMakeLists.txt # Don't duplicate shared libs in python tree
|
|
}
|
|
|
|
build() {
|
|
cmake -B build -S $pkgname \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DSPGLIB_WITH_Fortran=ON \
|
|
-DSPGLIB_WITH_Python=ON
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
install -Dm644 $pkgname/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|