summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d26bec3b5e862c3be1291271b072da2845ba16f3 (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
# Maintainer: Sebastian Ehlert  <awvwgk at gmail dot com>

pkgname=dftd4
pkgver=3.4.0
pkgrel=1
arch=('x86_64')
url="https://github.com/dftd4/dftd4"
depends=('gcc-fortran'
         'openblas'
         'lapack')
makedepends=('meson'
             'ninja'
             'asciidoctor')
license=('LGPL3')
pkgdesc="A Generally Applicable Atomic-Charge Dependent London Dispersion Correction"
source=("${pkgname}-${pkgver}.tar.xz::https://github.com/dftd4/dftd4/releases/download/v$pkgver/dftd4-$pkgver-source.tar.xz")
sha256sums=('24fcb225cdd5c292ac26f7d3204ee3c4024174adb5272eeda9ae7bc57113ec8d')

build() {
  meson setup _build_${CARCH} "${srcdir}/${pkgname}-${pkgver}" \
      --buildtype=release \
      --prefix=/usr \
      -Dlapack=openblas
  meson compile -C _build_${CARCH}
}

check() {
  meson test -C _build_${CARCH} --num-processes=1
}

package() {
  DESTDIR="$pkgdir" \
  meson install -C _build_${CARCH}
}