void-packages/srcpkgs/armadillo/template
2018-10-27 23:03:45 +02:00

34 lines
887 B
Bash

# Template file for 'armadillo'
pkgname=armadillo
version=9.100.5
revision=2
build_style=cmake
configure_args="$(vopt_if hdf5 -DDETECT_HDF5=ON)"
hostmakedepends="pkg-config openblas-devel"
makedepends="openblas-devel superlu-devel $(vopt_if hdf5 hdf5-devel)"
short_desc="C++ linear algebra library"
maintainer="Julien Dehos <dehos@lisic.univ-littoral.fr>"
license="Apache-2.0"
homepage="http://arma.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/arma/${pkgname}-${version}.tar.xz"
checksum=7e7dc6f1e876b8243c27a003b037559663371b42885436b1087757e652db41cd
build_options="hdf5"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="hdf5"
fi
post_install() {
vlicense LICENSE.txt
}
armadillo-devel_package() {
depends="${makedepends}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove /usr/share
vmove /usr/lib/pkgconfig
}
}