void-packages/srcpkgs/arpack-ng/template

32 lines
815 B
Bash

# Template file for 'arpack-ng'
pkgname=arpack-ng
version=3.4.0
revision=2
build_style=gnu-configure
hostmakedepends="automake libtool gcc-fortran"
makedepends="lapack-devel"
short_desc="Collection of Fortran77 subroutines"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="3-clause-BSD"
homepage="https://github.com/opencollab/arpack-ng"
distfiles="https://github.com/opencollab/arpack-ng/archive/${version}.tar.gz"
checksum=69e9fa08bacb2475e636da05a6c222b17c67f1ebeab3793762062248dd9d842f
pre_configure() {
export FFLAGS="-fPIC"
./bootstrap
}
post_install() {
vlicense COPYING LICENSE
}
arpack-ng-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}