void-packages/srcpkgs/superlu/template

35 lines
969 B
Bash

# Template file for 'superlu'
pkgname=superlu
version=5.3.0
revision=1
build_style=cmake
configure_args="-DUSE_XSDK_DEFAULTS=TRUE"
hostmakedepends="gcc-fortran"
makedepends="openblas-devel"
short_desc="Solution of large, sparse, nonsymmetric systems of linear equations"
maintainer="Julien Dehos <dehos@lisic.univ-littoral.fr>"
license="BSD-3-Clause"
homepage="https://portal.nersc.gov/project/sparse/superlu/"
changelog="https://portal.nersc.gov/project/sparse/superlu/changes.html#slu_change"
distfiles="https://github.com/xiaoyeli/superlu/archive/v${version}.tar.gz"
checksum=3e464afa77335de200aeb739074a11e96d9bef6d0b519950cfa6684c4be1f350
pre_configure() {
export LDFLAGS="-fPIC"
}
post_install() {
vlicense License.txt
}
superlu-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/include"
vmove "usr/lib/cmake"
vmove "usr/lib/pkgconfig"
vmove "usr/lib/libsuperlu.so"
}
}