aboutsummaryrefslogtreecommitdiffstats
path: root/community/suitesparse/APKBUILD
blob: bef3b9dfd994cc678ab6ee37878847f24e659c1a (plain) (blame)
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
48
49
50
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=suitesparse
_pkgname=SuiteSparse
pkgver=5.2.0
pkgrel=0
pkgdesc="A collection of sparse matrix libraries"
url="http://faculty.cse.tamu.edu/davis/suitesparse.html"
arch="all"
license="GPL"
depends_dev="openblas-dev>=0.3.0"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc"
source="http://faculty.cse.tamu.edu/davis/$_pkgname/$_pkgname-$pkgver.tar.gz
	0001-exclude-metis.patch
	0002-remove-rpath.patch
	"
builddir="$srcdir/$_pkgname"

prepare() {
	cd "$builddir"

	# OpenBLAS provides also LAPACK.
	export LAPACK="-lopenblas"

	# Do not include the Partition module and METIS (it's optional and
	# Julia doesn't need it).
	export CFLAGS="$CFLAGS -DNPARTITION"
	rm -r metis-*

	default_prepare
}

build() {
	cd "$builddir"
	make library
}

package() {
	cd "$builddir"

	make install \
		INSTALL="$pkgdir/usr" \
		INSTALL_INCLUDE="$pkgdir/usr/include/$pkgname" \
		INSTALL_DOC="$pkgdir/usr/share/doc/$pkgname"
}

sha512sums="d99d82504726a63d60e0a275c5257bd1fd9a62849d9a8ff008e29b85a97e809c0d9764c827e975df1c6e8bd6856df4f25c109e44f164af91d9488d5da0247a4b  SuiteSparse-5.2.0.tar.gz
0bdaed29c7770104eb94d9e60a42fe68b5643c8f958aba4cc6d7996888a83ae75a4e509d0c262264c49d5d9b1ca23a958cc71cfaa5e983b0008e65455a987cac  0001-exclude-metis.patch
cd40b696515b26c95298b435a5111e582dc42c2fa2e8ef9889558467d375b1d19452838b9463df66958e73ddb0c8c0191936e3e952586a3c7d345edb08fa7e62  0002-remove-rpath.patch"