blob: 86134a18a36accc1f23b0aee5a5553ce1cc3e8de (
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
|
# Maintainer: Jose Luis Cercos Pita <jlcercos@gmail.com>
pkgname=moordyn
pkgver=2.3.5
pkgrel=1
pkgdesc="MoorDyn is a lumped-mass model for simulating the dynamics of mooring systems connected to floating offshore structures"
arch=('x86_64')
url="https://github.com/FloatingArrayDesign/MoorDyn"
license=('BSD-3-Clause')
groups=()
depends=(gcc-libs glibc vtk)
makedepends=(git cmake base-devel gcc-fortran)
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
_tag=v${pkgver}
_sourceName="MoorDyn"
source=("git+${url}.git#tag=${_tag}")
noextract=()
sha256sums=('4d331a03e5cd4c10efc169cff3eacb88eb5be31a4e4089e53200c2f0e132434c')
pkgver() {
cd "${_sourceName}"
git describe --tags | sed 's/^v//'
}
build() {
mkdir -p build
cmake \
-B build -S ${_sourceName} \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DEXTERNAL_EIGEN:BOOL=OFF \
-DPYTHON_WRAPPER:BOOL=OFF \
-DFORTRAN_WRAPPER:BOOL=ON \
-DRUST_WRAPPER:BOOL=OFF \
-DUSE_VTK=ON \
-DBUILD_TESTING=ON
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -D -m644 "${_sourceName}/LICENSE.txt" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|