spglib: import as avogadrolibs new dependency

This commit is contained in:
Jeff Huang 2016-12-16 01:22:26 +00:00
parent 9f8069e0c6
commit e0cb4d95c4

27
spglib/PKGBUILD Normal file
View File

@ -0,0 +1,27 @@
# Contributions from Arch:
# Maintainer: Antonio Rojas <arojas@archlinux.org>
pkgname=spglib
pkgver=1.9.9
pkgrel=1
pkgdesc="C library for finding and handling crystal symmetries"
arch=(x86_64)
url="https://atztogo.github.io/spglib/"
license=(custom)
depends=(glibc)
source=($pkgname-$pkgver.tar.gz::"https://github.com/atztogo/spglib/archive/v$pkgver.tar.gz")
md5sums=('6bbf2cb37a2294f26f2324e1142ab7d8')
build() {
cd $pkgname-$pkgver
touch INSTALL NEWS README AUTHORS
autoreconf -vi
./configure --prefix=/usr
make
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}