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

# source: james
TARBALL=lapack-$PKGVER.tar.gz
MD5SUM=96591affdbf58c450d45c1daa540dbd2
SRC_URL=http://www.netlib.org/lapack/$TARBALL
BUNDLE=

SLACKREQ= # gcc-full build-time only (needs gfortran)
SLACKDESC="liblapack: liblapack $PKGVER (Linear Algebra library)  
liblapack:  
liblapack: LAPACK provides routines for solving systems of simultaneous linear 
liblapack: equations, least-squares solutions of linear systems of equations, 
liblapack: eigenvalue problems, and singular value problems. It is the 
liblapack: multi-CPU version of EISPACK/LINPACK. Note: This version of the 
liblapack: library uses the generic reference version of BLAS (which may not 
liblapack: perform as well as the machine-specific optimised version).  
liblapack: 
liblapack: 
liblapack: http://www.netlib.org/lapack/
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/lapack*
	
	sed -i -e "s|lib/|$LIBDIR/|" CMakeLists.txt &&
	mkdir build && cd build &&
	cmake .. -DBUILD_SHARED_LIBS=1 -DLAPACKE=1 \
	         -DCMAKE_INSTALL_PREFIX=/usr \
	         $([ $USE_ARCH = 64 ] && echo "-DLIB_SUFFIX=64") &&
	make $MAKEFLAGS && make install &&
	pkg_build_slackdesc
}


