summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0f4b74e66786772df2f23f93f0fb587d86992e9d (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
# Maintainer: hbhkx <kxhuang0@gmail.com>
# Contributor: Israel Herraiz <isra@herraiz.org>

pkgname=suitesparse-mkl
pkgver=5.6.0
pkgrel=3
pkgdesc="A collection of sparse matrix libraries (compiled with the Intel MKL and Intel TBB)"
url="http://faculty.cse.tamu.edu/davis/suitesparse.html"
arch=('i686' 'x86_64')
gblasver=3.1.1
conflicts=('umfpack' 'graphblas' 'suitesparse')
provides=('umfpack' "graphblas=${gblasver}" "suitesparse=${pkgver}")
replaces=('umfpack' 'graphblas' 'suitesparse')
depends=('metis' 'intel-mkl' 'intel-tbb_psxe')
makedepends=('intel-compiler-base' 'intel-fortran-compiler' 'cmake')
license=('GPL')
options=()
source=("https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v${pkgver}.tar.gz" suitesparse-mkl_tbb.patch)
sha1sums=('3de08b5ab02610ed0446225aad2445696616fae5'
          '82a0f7a84af1ee1df52416cd436d9a5e915b1e67')

prepare() {
# Fix linking with intel-tbb
    cd ${srcdir}
    patch -p0 < suitesparse-mkl_tbb.patch
}

build() {
    cd ${srcdir}/SuiteSparse-${pkgver}
    JOBS=8 make
}


package() {
    cd ${srcdir}/SuiteSparse-${pkgver}
    make install INSTALL="${pkgdir}/usr"
}