blob: bfe61702a74a904726f231099f4d2785a5373cfa (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: banana-bred <j.forer@posteo.net>
pkgname="ukrmol-in"
pkgver=3.2
pkgrel=2
pkgdesc="Inner region programs for UKRmol+"
arch=('any')
url='https://zenodo.org/records/5799110'
license=('GPL3')
groups=()
depends=('lapack' 'blas' 'gbtolib')
makedepends=('cmake' 'gcc' 'gcc-fortran' 'cmake' 'doxygen' 'openmpi')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
noextract=()
source=('https://zenodo.org/record/5799110/files/ukrmol-in-'"${pkgver}"'.tar.gz?download=1')
sha256sums=('b93017d8d82a359a72f0f2326cef67c5499f3f97b518ec2a9befbfb214b5ecb4')
build() {
local _cmakeOptions=(
-D CMAKE_C_COMPILER="$(command -v gcc)"
-D CMAKE_CXX_COMPILER="$(command -v gcc)"
-D CMAKE_Fortran_COMPILER="$(command -v mpifort)"
-D CMAKE_Fortran_FLAGS='-fdefault-integer-8'
)
cd "${srcdir}/${pkgname}-${pkgver}"
cmake "${_cmakeOptions[@]}" $(pwd)
make
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
ctest -R serial
mv ./Testing TestingSerial
ctest -R parallel
mv ./Testing TestingParallel
}
package() {
install -d "${pkgdir}"/usr/bin/
install -d "${pkgdir}/usr/lib/${pkgname}"
install -d "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 755 "${srcdir}/${pkgname}-${pkgver}"/bin/* "${pkgdir}"/usr/bin/
install -Dm 644 "${srcdir}/${pkgname}-${pkgver}"/lib/*.a "${pkgdir}/usr/lib/${pkgname}"
install -Dm 644 "${srcdir}/${pkgname}-${pkgver}"/doc/* "${pkgdir}/usr/share/doc/${pkgname}"
}
# vim: ts=2 sw=2 et :
|