void-packages/srcpkgs/iml/template

34 lines
890 B
Bash

# Template file for 'iml'
pkgname=iml
version=1.0.5
revision=1
build_style=gnu-configure
configure_args="--enable-shared --with-cblas=-lopenblas"
makedepends="gmp-devel openblas-devel"
short_desc="Integer Matrix Library"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="BSD-3-Clause"
homepage="https://cs.uwaterloo.ca/~astorjoh/iml.html"
distfiles="https://cs.uwaterloo.ca/~astorjoh/iml-${version}.tar.bz2"
checksum=1dad666850895a5709b00b97422e2273f293cfadea7697a9f90b90953e847c2a
if [ -n "$CROSS_BUILD" ]; then
configure_args+=" --with-default=$XBPS_CROSS_BASE/usr"
fi
post_install() {
sed '/^$/q' < src/iml.h > LICENSE
vlicense LICENSE
}
iml-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share/iml
}
}