blob: bccd83eaf4e75246f34603e0a0db703e2475c11b (
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=1.9.5.r564.951c47c
pkgrel=1
pkgdesc="C library for finding and handling crystal symmetries"
url="http://atztogo.github.io/spglib/"
arch=("i686" "x86_64")
license=("BSD")
depends=("glibc")
makedepends=("git" "automake" "autoconf" "libtool" "gcc")
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("git://github.com/atztogo/${_pkgname}.git")
sha256sums=("SKIP")
pkgver() {
cd "${srcdir}/${_pkgname}"
_parent_ver=$(git log --tags --simplify-by-decoration --pretty="format:%d" | head -n 1 | cut -d " " -f 6 | tr -d "v,")
printf "%s.r%s.%s" \
"${_parent_ver}" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
aclocal
autoheader
libtoolize
touch INSTALL NEWS README AUTHORS
automake -acf
autoconf
# This also calls make!
./configure \
--prefix=/usr
}
package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}" install
install -D -m 644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|