summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0f4819657b1da8aa219d721d8340e540a312ecea (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
# Maintainer: Martin Diehl <aur@martin-diehl.net>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=elemental
pkgver=1.5.3
pkgrel=5
pkgdesc='Distributed-memory dense linear algebra'
arch=('i686' 'x86_64')
url=https://github.com/LLNL/Elemental
license=(custom:BSD)
depends=(openmpi lapack)
makedepends=(cmake libmpc gcc-fortran)
source=(https://github.com/LLNL/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('7f2b0669e068a0717ed97246d9971cfcf5ff0f79c340a9946b909d67db10e0b462a1ef249edd99acd9071f5c0ade7ca01b46eebad6f07af8d0ce8e24373d9972')

build() {
    cmake -S Elemental-${pkgver} \
          -B build \
          -D CMAKE_INSTALL_PREFIX:PATH=/usr \
          -D CMAKE_BUILD_TYPE:STRING=Release \
          -D BUILD_SHARED_LIBS:BOOL=ON \
          -D __GIT_EXECUTABLE:BOOL=OFF
    make -C build
}

package() {
  DESTDIR="${pkgdir}" cmake --install build
  install -Dm644 Elemental-${pkgver}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
}