blob: 0eea68f3f4d28e2f5645c0e3ca6a809a62b817eb (
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
|
# Maintainer: banana-bred <j.forer@posteo.net>
pkgname='opencoarrays'
_name='OpenCoarrays'
pkgver=2.10.2
pkgrel=3
pkgdesc="A transport layer for coarray Fortran compilers."
arch=('x86_64')
url="https://github.com/sourceryinstitute/OpenCoarrays"
license=('BSD')
groups=()
depends=('openmpi')
makedepends=('gcc-fortran' 'cmake')
checkdepends=()
optdepends=()
provides=()
conflicts=("${pkgname}-git" "${pkgname}-mpich-git")
replaces=()
backup=()
options=()
install=
changelog=
noextract=()
source=("https://github.com/sourceryinstitute/OpenCoarrays/releases/download/${pkgver}/OpenCoarrays-${pkgver}.tar.gz")
sha256sums=(e13f0dc54b966b0113deed7f407514d131990982ad0fe4dea6b986911d26890c)
build() {
cd "${srcdir}/${_name}-${pkgver}"
export FC="$(command -v gfortran)"
export CC="$(command -v gcc)"
cmake \
-B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cd "${srcdir}/${_name}-${pkgver}/build"
make
}
check() {
cd "${srcdir}/${_name}-${pkgver}/build"
make test
}
package() {
cd "${srcdir}/${_name}-${pkgver}/build"
make DESTDIR="${pkgdir}" install
install -D -m 644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim: ts=2 sw=2 et :
|