blob: ac8d8fe13a0ce69f8df27c7a9cce6f63bc43815a (
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
|
# Maintainer: Arnold Kole <a.h.kole@uu.nl>
pkgname=libgridxc
pkgver=2.0.1
pkgrel=1
pkgdesc="A library for the computation of exchange and correlation energies and potentials in radial and 3D grids"
arch=('i686' 'x86_64' 'aarch64')
url="https://gitlab.com/siesta-project/libraries/${pkgname}"
license=('BSD3')
depends=('libxc' 'openmpi')
makedepends=(gcc-fortran cmake)
checkdepends=(gcc-fortran cmake)
options=(staticlibs)
source=(https://gitlab.com/siesta-project/libraries/libgridxc/uploads/76e2ffbdf13c2149285fa0fad72fa1f5/$pkgname-$pkgver.tar.gz)
sha256sums=('decd56e4e84ccf29f3c71fb26bc1e084bc715e7b1b8d628ceada42ffc5629ab2')
build() {
cd "$pkgname-$pkgver"
cmake -S. -B_build -DWITH_MPI=ON -DWITH_LIBXC=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/usr
cmake --build _build
}
check() {
cd "$pkgname-$pkgver"
cmake --build _build --target test
}
package() {
cd "$pkgname-$pkgver"
DESTDIR="$pkgdir/" cmake --install _build
}
|