### this file is sourced not run
PKGVER=3.7.0.2020.1
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=arpack-$PKGVER.tar.gz
MD5SUM=456686b81f397dfcdc41c3a513219a17
SRC_URL=https://github.com/opencollab/arpack-ng/archive/3f7b86addefd692e6c3f34f81510ed66fa8980fc.tar.gz
BUNDLE=

SLACKREQ='liblapack' # gcc-full build-time only (needs gfortran)
SLACKDESC="libarpack: libarpack $PKGVER (Fortran eigenvalues library)  
libarpack:  
libarpack: ARPACK is a collection of Fortran77 subroutines designed to solve 
libarpack: large scale eigenvalue problems.  
libarpack: 
libarpack: http://www.caam.rice.edu/software/ARPACK/
libarpack: https://github.com/opencollab/arpack-ng
libarpack: 
libarpack: 
libarpack: 
libarpack: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/arpack* &&
	CONFFLAGS="$CONFFLAGS --disable-static" &&
	
	sed -i -e "s|lib/cmake|$LIBDIR/cmake|" CMakeLists.txt &&
	autoreconf -fi &&
	pkg_build_autoconf &&
	pkg_build_slackdesc &&

	rm -r /usr/lib/cmake # not using cmake - remove it
}

