blob: 0fab2b410e0f452265287a184b44369e16c0eed9 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Eisuke Kawashima <e DOT kawaschima+arch AT gmail DOT com>
# Maintainer: Sebastian Ehlert <awvwgk at gmail dot com>
pkgname=dftd4
pkgver=4.2.0
pkgrel=1
arch=('x86_64')
url='https://github.com/dftd4/dftd4'
depends=('blas'
'lapack')
makedepends=('asciidoctor'
'gcc-fortran'
'git'
'meson'
'ninja'
'python-cffi'
'python-setuptools')
license=('LGPL-3.0')
pkgdesc='A Generally Applicable Atomic-Charge Dependent London Dispersion Correction'
source=("dftd4-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('e1255317b33af5326faf605e6135d0e0b15935a36304b8d59b7142ca15110959')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
meson subprojects download --sourcedir=.
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
local options=(
--buildtype=plain
--prefix=/usr
# --wrap-mode=nodownload
--auto-features=enabled
-Db_pie=true
-Dwarning_level=0 # avoid comilation error due to -Wall, see https://github.com/dftd4/dftd4/issues/294
)
meson setup _build_${CARCH} . "${options[@]}"
meson compile -C _build_${CARCH}
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
meson test -C _build_${CARCH} --num-processes=1
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
DESTDIR="$pkgdir" \
meson install -C _build_${CARCH}
}
|