summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 66c7169e29c1d3ee99ed2cc8798fe7ff1d433f32 (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
pkgname=getdp
pkgver=3.5.0
pkgrel=2
pkgdesc='general environment for the Treatment of Discrete Problems'
arch=('x86_64')
url='http://getdp.info/'
license=('GPL-2.0-or-later')
depends=(
python
gmsh
)
makedepends=(
gcc
gcc-libs
cmake
git
arpack
openblas
lapack
swig
flex
bison
texinfo
ninja
)

_fragment="#tag=getdp_${pkgver//./_}"
source=("git+https://gitlab.onelab.info/getdp/getdp.git${_fragment}")
sha256sums=('SKIP')

prepare() {
  cd getdp
  #sed -i '1i #include <cstring>' Kernel/Operation_Broadcast.cpp
}

build() {
    cmake -B build_dir -S getdp -W no-dev -G Ninja \
      -D CMAKE_BUILD_TYPE=None \
      -D CMAKE_INSTALL_PREFIX='/usr'

    cmake --build build_dir
}

package() {
    DESTDIR="${pkgdir}" cmake --install build_dir
}