blob: 5d543cb3835527d375bb605dd9402a31b37c5c20 (
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
|
pkgname=mingw-w64-tasmanian
pkgver=7.7
pkgrel=1
pkgdesc="Toolkit for Adaptive Stochastic Modeling and Non-Intrusive ApproximatioN (mingw-w64)"
license=('BSD')
arch=('any')
url="https://tasmanian.ornl.gov/"
depends=('mingw-w64-lapack')
makedepends=('mingw-w64-cmake')
options=('!buildflags' '!strip' 'staticlibs')
source=("https://github.com/ORNL/TASMANIAN/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('85fb3a7b302ea21a3b700712767a59a623d9ab93da03308fa47d4413654c3878')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd TASMANIAN-$pkgver
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
${_arch}-cmake \
-DTasmanian_ENABLE_OPENMP=ON \
-DTasmanian_ENABLE_BLAS=ON \
..
make
popd
done
}
package() {
for _arch in ${_architectures}; do
cd "$srcdir/TASMANIAN-${pkgver}/build-${_arch}"
make install DESTDIR="$pkgdir"
rm "$pkgdir"/usr/${_arch}/bin/*.exe
rm -r "$pkgdir"/usr/${_arch}/share
${_arch}-strip --strip-unneeded "$pkgdir"/usr/${_arch}/bin/*.dll
${_arch}-strip -g "$pkgdir"/usr/${_arch}/lib/*.a
done
}
|