summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD111
1 files changed, 40 insertions, 71 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6b93502caf6..bc45619b276 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,79 +2,54 @@
# Contributor: mickele <mimocciola___AT___yahoo___DOT___ com>
# Contributor: iztok pizorn <pizorn___AT___gmail___DOT___com>
# Contributor: olivier medoc <o_medoc___AT___yahoo___DOT___fr>
+# Contributor: Anton Kudelin <kudelin___AT___protonmail___DOT___com>
+
pkgname=atlas-lapack
pkgver=3.10.3
-_lapackver=3.6.1
-pkgrel=1
-pkgdesc="Complete LAPACK and BLAS implementation using optimised ATLAS routines"
+_lapackver=3.8.0
+pkgrel=2
+pkgdesc="Automatically Tuned Linear Algebra Software"
url="http://math-atlas.sourceforge.net/"
depends=('gcc-libs')
makedepends=('binutils' 'sed' 'gcc-fortran')
-arch=('i686' 'x86_64')
-conflicts=('blas' 'lapack' 'cblas' 'atlas-lapack-base')
-provides=("blas" "lapack=$_lapackver" 'cblas' 'atlas-lapack-base')
-license=('custom:blas' 'custom:lapack' 'custom:atlas')
+arch=('x86_64')
+conflicts=('blas' 'lapack' 'cblas' 'atlas-lapack-base' 'openblas' 'openblas-lapack')
+provides=("blas" "lapack" 'cblas' 'atlas-lapack-base')
+license=('BSD' 'custom:lapack')
options=(!makeflags)
install=$pkgname.install
-source=(http://www.netlib.org/lapack/lapack-$_lapackver.tgz
- http://downloads.sourceforge.net/math-atlas/atlas${pkgver}.tar.bz2
- blas-license.txt atlas-license.txt
- makefile.shared.mt makefile.shared.st)
-noextract=(lapack-$_lapackver.tgz atlas$pkgver.tar.bz2)
-md5sums=('421b2cb72e15f237e144428f9c460ee0'
- 'd6ce4f16c2ad301837cfb3dade2f7cef'
- '38b6acb8ed5691d25863319d30a8b365'
- '4903eb06072dfbf94710691ccb6660bf'
- 'e293bf3b62b7cc02cb5dcf54f9f40053'
- '5153cb945e8f386e4d98d4b0fe791776')
-
-build() {
+source=("https://github.com/Reference-LAPACK/lapack/archive/v$_lapackver.tar.gz"
+ "http://downloads.sourceforge.net/math-atlas/atlas${pkgver}.tar.bz2"
+ "Makefile")
+noextract=("v$_lapackver.tar.gz" "atlas$pkgver.tar.bz2")
+sha256sums=('deb22cc4a6120bff72621155a9917f485f96ef8319ac074a7afbc68aab88bcf6'
+ '2688eb733a6c5f78a18ef32144039adcd62fabce66f2eb51dd59dde806a6d2b7'
+ '7627446a0d598b55bc8f2795f8ff2028f134928b9ca597b76bf8dd5622dbff69')
+
+prepare() {
msg 'Before building this package, as root you must set the CPU(s)'
- msg 'governor(s) to "performance".'
+ msg 'governor(s) to "performance" and disable intel_pstate.'
msg 'See: https://wiki.archlinux.org/index.php/CPU_frequency_scaling'
- cd "$srcdir"
+ cd $srcdir
tar -xjf atlas$pkgver.tar.bz2
+ mkdir ATLAS/build
+}
+
+build() {
+ cd $srcdir/ATLAS/build
- unset MAKE
- CORE=`cat /proc/cpuinfo | grep "cpu MHz" | head -n 1 | sed "s/.*: \([0-9.]*\).*/\1/"`
- NCPU=`grep "^processor" /proc/cpuinfo | wc -l`
- if [ "$CARCH" = "x86_64" ]; then
- ARCHITECTURE_BUILD_OPTS="-b 64" # for x86_64
- else
- ARCHITECTURE_BUILD_OPTS="-b 32" # for i686
- fi
-
- cd "$srcdir"/ATLAS
- rm -rf build
- mkdir -p build
- cd build
-
- msg 'Configuring ATLAS'
-
- ../configure --prefix=/usr/ $ARCHITECTURE_BUILD_OPTS -Fa alg -fPIC \
- --shared -D c -DPentiumCPS=$CORE \
- --with-netlib-lapack-tarfile="$srcdir/lapack-$_lapackver.tgz"
-
- msg 'Building ATLAS'
-
+ ../configure --prefix=/usr \
+ --shared \
+ --with-netlib-lapack-tarfile="$srcdir/v$_lapackver.tar.gz"
make build
-
- msg 'Building shared libraries'
cd lib
- if [ 1 -lt $NCPU ]; then
- cp "$srcdir/makefile.shared.mt" makefile
- else
- cp "$srcdir/makefile.shared.st" makefile
- fi
- make -f makefile
+ cp $srcdir/Makefile .
+ make
}
check() {
- cd "$srcdir/ATLAS/build"
- unset MAKE
-
- msg 'Checking ATLAS'
+ cd $srcdir/ATLAS/build
make check
make ptcheck
@@ -82,23 +57,17 @@ check() {
}
package() {
- cd "$srcdir/ATLAS/build"
- unset MAKE
-
- msg 'Packaging ATLAS'
+ cd $srcdir/ATLAS/build
- make DESTDIR="$pkgdir/usr" install
- cp -d lib/*.so* "$pkgdir/usr/lib"
- [ -e lib/libptlapack.a ] && cp lib/libptlapack.a "$pkgdir/usr/lib"
- cd "$pkgdir/usr/lib"
+ make DESTDIR=$pkgdir/usr install
+ cp -d lib/*.so* $pkgdir/usr/lib
+ cd $pkgdir/usr/lib
ln -s libblas.so libblas.so.3
ln -s liblapack.so.3 liblapack.so
+
+ cd ../include/atlas
+ sed -i "s#$srcdir# #g" *
- install -Dm644 "${srcdir}/blas-license.txt" \
- "${pkgdir}/usr/share/licenses/$pkgname/blas-license.txt"
- install -Dm644 "${srcdir}/ATLAS/build/src/lapack/reference/LICENSE" \
- "${pkgdir}/usr/share/licenses/$pkgname/lapack-license.txt"
- install -Dm644 "${srcdir}/atlas-license.txt" \
- "${pkgdir}/usr/share/licenses/$pkgname/atlas-license.txt"
+ install -Dm644 $srcdir/ATLAS/build/src/lapack/reference/LICENSE \
+ $pkgdir/usr/share/licenses/$pkgname/lapack-license.txt
}
-