blob: 681537ab6ae8c7e2648995414461cbdad8476cd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Eric Berquist <eric DOT berquist AT gmail DOT com>
_pkgname=spglib
pkgname="${_pkgname}-git"
pkgver=2.1.0rc2.r1647.3800c46
pkgrel=1
pkgdesc="C library for finding and handling crystal symmetries"
url="https://spglib.readthedocs.io/en/latest/"
arch=("i686" "x86_64")
license=("BSD-3-Clause")
depends=("glibc")
makedepends=("git" "cmake" "gcc")
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("git+https://github.com/spglib/${_pkgname}")
sha256sums=("SKIP")
pkgver() {
cd "${srcdir}/${_pkgname}"
printf "%s.r%s.%s" \
"$(git describe --tags --abbrev=0 | tr -d 'v-')" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
mkdir -p build
cmake -B build .
cd build
make
}
check() {
cd "${srcdir}/${_pkgname}"
ctest --test-dir build
}
package() {
cd "${srcdir}/${_pkgname}/build"
make DESTDIR="${pkgdir}" install
}
|