blob: 00d02e2d76ac2f3914df324dece90e7c20aab971 (
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
|
# Contributor: Ed Sandberg <scarypezsanta@gmail.com>
# Maintainer: Xyne
pkgname=abinit
pkgver=9.2.1
pkgrel=1
pkgdesc="Full-featured atomic-scale first-principles simulation software."
arch=('i686' 'x86_64')
url="https://www.abinit.org/"
license=('GPLv3')
depends=('lapack' 'blas' 'openmpi' 'netcdf' 'netcdf-fortran' 'hdf5' 'libxc')
makedepends=('gcc8-fortran' 'perl')
source=(
"https://www.abinit.org/sites/default/files/packages/$pkgname-$pkgver.tar.gz"
)
build() {
cd -- "$srcdir/$pkgname-$pkgver"
mkdir -p build && cd build
../configure \
FC=gfortran-8 \
CC=cc-8 \
--with-libxc='yes' \
--with-hdf5='yes' \
--with-netcdf='yes' \
--with-netcdf-fortran='yes' \
--prefix=/usr \
#--disable-all-plugins
make -j $(($(nproc) + 1))
}
package() {
cd -- "$srcdir/$pkgname-$pkgver/build"
make DESTDIR="$pkgdir" install
}
sha512sums=('31405d3c29526ef4022b5299b94eb729ef0996717e391c865ec1e53dd9c45c688c4c70fbbdbb72c036665cbd153eff141b2eeb5b5bc455e0a24fac350e7cca5d')
|