aboutsummaryrefslogtreecommitdiffstats
path: root/community/armadillo/APKBUILD
blob: 2d10cdcc164ba46a8ec41bef8a092ea1af3f634e (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
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
pkgname=armadillo
pkgver=10.7.1
pkgrel=2
pkgdesc="C++ library for linear algebra & scientific computing"
url="http://arma.sourceforge.net/"
arch="all !mips !mips64" # blocked by openblas
license="Apache-2.0"
options="!check"  # Armadillo must be installed before the tests can be compiled
depends_dev="
	hdf5-dev
	superlu-dev
	"
makedepends="
	arpack-dev
	cmake
	hdf5-dev
	openblas-dev
	superlu-dev
	"
subpackages="$pkgname-dev"
source="https://downloads.sourceforge.net/project/arma/armadillo-$pkgver.tar.xz"

build() {
	cmake . \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

package() {
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir/usr/lib/cmake"
	mv "$pkgdir/usr/share/Armadillo/CMake"/* "$pkgdir/usr/lib/cmake"
	rm -rf "$pkgdir/usr/share"
}

sha512sums="
b9be6a38165a4d23a61715a3c3f970dcb9b813bebd51b7372a4e8349ab2c351cd5c74f662d860911b30b2b816f2eb1255768fab1497ec087a63a07f56f74327f  armadillo-10.7.1.tar.xz
"