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

pkgname=dftd4
pkgver=3.7.0
pkgrel=1
arch=('x86_64')
url='https://github.com/dftd4/dftd4'
depends=('blas'
         'lapack')
makedepends=('meson'
             'ninja'
             'gcc-fortran'
             'asciidoctor')
license=('LGPL-3.0')
pkgdesc='A Generally Applicable Atomic-Charge Dependent London Dispersion Correction'
source=("https://github.com/dftd4/dftd4/releases/download/v$pkgver/dftd4-$pkgver.tar.xz")
sha256sums=('4e8749df6852bf863d5d1831780a2d30e9ac4afcfebbbfe5f6a6a73d06d6c6ee')

build() {
  local options=(
    --buildtype=release
    --prefix=/usr
    -Db_pie=true
    -Dwarning_level=0  # avoid comilation error due to -Wall, see https://github.com/dftd4/dftd4/issues/294
  )
  meson setup _build_${CARCH} "${srcdir}/${pkgname}-${pkgver}" "${options[@]}"
  meson compile -C _build_${CARCH}
}

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

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