summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1af3f35cf5b1b863fc37ba1aa719b5e0d68769fc (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
pkgname=mumps-cmake
pkgver=5.6.2.2
pkgrel=1
pkgdesc='MUMPS via CMake'
arch=('x86_64')
url='https://github.com/scivision/mumps'
license=('MIT')
depends=(
lapack
openmpi
scotch
scalapack
metis
zlib
bzip2
)
makedepends=(
gcc-fortran
cmake
git
ninja
)
provides=(mumps)
conflicts=(mumps)

_fragment="#tag=v${pkgver}"
source=("git+https://github.com/scivision/mumps.git${_fragment}")
sha256sums=('SKIP')

prepare() {
  cd mumps
}

build() {
    # TODO: stop this from downloading and put the source in the source array
    cmake -B build_dir -S mumps -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
}