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

# source: james
TARBALL=lapack-$PKGVER.tar.gz
MD5SUM=595b064fd448b161cd711fe346f498a7
SRC_URL=https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v${PKGVER}.tar.gz
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: http://www.netlib.org/lapack/
liblapack: 
"

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


