# Maintainer: Arnold Kole 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 }