# Template file for 'arpack-ng'
pkgname=arpack-ng
version=3.3.0
revision=2
build_style=gnu-configure
hostmakedepends="automake libtool"
makedepends="gcc-fortran libgfortran-devel blas-devel lapack-devel"
short_desc="Collection of Fortran77 subroutines"
maintainer="Diogo Leal <diogo@diogoleal.com>"
nocross=yes
nopie=yes
license="BSD"
homepage="https://github.com/opencollab/arpack-ng"
distfiles="https://github.com/opencollab/arpack-ng/archive/${version}.tar.gz"
checksum=ad59811e7d79d50b8ba19fd908f92a3683d883597b2c7759fdcc38f6311fe5b3

pre_configure() {
	./bootstrap
}

post_install() {
	vlicense COPYING
}

arpack-ng-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/lib/*.a
		vmove usr/lib/*.so
		vmove usr/lib/pkgconfig
	}
}
