### this file is sourced not run
PKGVER=3.9.0.2023.07 # pull date
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=arpack-ng-$PKGVER.tar.gz
MD5SUM=c096e85fb9e73d8bb8507012fab8fcb7
SRC_URL=https://github.com/opencollab/arpack-ng/archive/6d625dbf34375a0b5823d6c03bd16044f405baae.tar.gz
BUNDLE=

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

### 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
}

