* update spglib to 2.5.0-1

This commit is contained in:
Alexander Baldeck 2024-07-25 20:27:56 +02:00
parent 7cd85ba7e6
commit be41cef9f3
3 changed files with 33 additions and 7 deletions

20
spglib/.SRCINFO Normal file
View File

@ -0,0 +1,20 @@
pkgbase = spglib
pkgdesc = C library for finding and handling crystal symmetries
pkgver = 2.5.0
pkgrel = 1
url = https://spglib.readthedocs.io/en/latest/
arch = x86_64
license = BSD-3-Clause
makedepends = cmake
makedepends = gcc-fortran
makedepends = git
makedepends = gtest
makedepends = python
makedepends = python-numpy
depends = glibc
optdepends = gcc-libs: Fortran interface
optdepends = python-numpy: Python interface
source = git+https://github.com/spglib/spglib#tag=v2.5.0
sha256sums = 8d4da6ebdf02a78de85e2d52c6829ec93dcad0fcd6d7892f94820ff80da01ebf
pkgname = spglib

5
spglib/.nvchecker.toml Normal file
View File

@ -0,0 +1,5 @@
[spglib]
source = 'github'
github = 'spglib/spglib'
use_max_tag = true
prefix = 'v'

View File

@ -2,8 +2,8 @@
# Maintainer: Antonio Rojas <arojas@archlinux.org>
pkgname=spglib
pkgver=2.4.0
pkgrel=2
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/'
@ -11,20 +11,21 @@ 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=(https://github.com/spglib/spglib/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('e33694b189c6864f719a59c31e2af55301a524fb68ba9fb65f08e95af471847d')
source=(git+https://github.com/spglib/spglib#tag=v$pkgver)
sha256sums=('570b46d69e46d17dc0e8bc35c358df36334a8b08977791ee00cb9e48b31932b0')
prepare() {
sed -e 's|TARGET Spglib_symspg|0|' -i $pkgname-$pkgver/python/CMakeLists.txt # Don't duplicate shared libs in python tree
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-$pkgver \
cmake -B build -S $pkgname \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSPGLIB_WITH_Fortran=ON \
-DSPGLIB_WITH_Python=ON
@ -33,5 +34,5 @@ build() {
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
install -Dm644 $pkgname/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}