summaryrefslogtreecommitdiffstats
path: root/abs/extra/lapack
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-02-19 14:21:17 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-02-19 14:21:17 (GMT)
commit41152612ebf748ebc788d1cffae01fc2c8f6f407 (patch)
treed1a8505ad4ea347e6dc2ec6ee43e6a8eba1892bf /abs/extra/lapack
parentb3bb818d1943b99595e7fc58e0e5fdbce3bb8010 (diff)
downloadlinhes_pkgbuild-41152612ebf748ebc788d1cffae01fc2c8f6f407.zip
linhes_pkgbuild-41152612ebf748ebc788d1cffae01fc2c8f6f407.tar.gz
linhes_pkgbuild-41152612ebf748ebc788d1cffae01fc2c8f6f407.tar.bz2
lapack: update to 3.8.0
Diffstat (limited to 'abs/extra/lapack')
-rw-r--r--abs/extra/lapack/LICENSE.blas19
-rw-r--r--abs/extra/lapack/PKGBUILD86
-rw-r--r--abs/extra/lapack/__changelog1
3 files changed, 106 insertions, 0 deletions
diff --git a/abs/extra/lapack/LICENSE.blas b/abs/extra/lapack/LICENSE.blas
new file mode 100644
index 0000000..79f3838
--- /dev/null
+++ b/abs/extra/lapack/LICENSE.blas
@@ -0,0 +1,19 @@
+From: http://www.netlib.org/blas/faq.html
+
+ 2) Are there legal restrictions on the use of BLAS reference
+ implementation software?
+
+The reference BLAS is a freely-available software package. It is
+available from netlib via anonymous ftp and the World Wide Web. Thus,
+it can be included in commercial software packages (and has been). We
+only ask that proper credit be given to the authors.
+
+Like all software, it is copyrighted. It is not trademarked, but we do
+ask the following:
+
+If you modify the source for these routines we ask that you change the
+name of the routine and comment the changes made to the original.
+
+We will gladly answer any questions regarding the software. If a
+modification is done, however, it is the responsibility of the person
+who modified the routine to provide support.
diff --git a/abs/extra/lapack/PKGBUILD b/abs/extra/lapack/PKGBUILD
new file mode 100644
index 0000000..7ff50f1
--- /dev/null
+++ b/abs/extra/lapack/PKGBUILD
@@ -0,0 +1,86 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+# Contributor: damir <damir@archlinux.org>
+# Contributor: Jason Taylor <jftaylor21@gmail.com>
+
+pkgbase=lapack
+pkgname=('lapack' 'blas' 'cblas' 'lapacke')
+pkgver=3.8.0
+pkgrel=1
+url="http://www.netlib.org/lapack"
+pkgdesc="Linear Algebra PACKage"
+makedepends=('gcc-fortran' 'cmake' 'python' 'doxygen')
+arch=('x86_64')
+license=("custom")
+source=(http://www.netlib.org/${pkgbase}/${pkgbase}-${pkgver}.tar.gz LICENSE.blas)
+sha1sums=('55ac9d6be510883c5442c8aca967722cdf58fb29'
+ '2491a151a37f0162b25fc4e4e9a8ac444b574a76')
+
+build() {
+ install -d build
+ cd build
+ cmake ../${pkgname}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DBUILD_SHARED_LIBS=ON \
+ -DBUILD_TESTING=OFF \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_Fortran_COMPILER=gfortran \
+ -DLAPACKE_WITH_TMG=ON \
+ -DCBLAS=ON \
+ -DBUILD_DEPRECATED=ON
+ make
+
+# Build man pages
+ cd ../$pkgname-$pkgver
+ doxygen DOCS/Doxyfile_man
+}
+
+package_lapack() {
+ depends=("blas")
+
+ cd build
+ make DESTDIR="$pkgdir" install
+
+ rm -r "$pkgdir"/usr/lib/{libblas.*,libcblas.*,liblapacke.*}
+ rm -r "$pkgdir"/usr/lib/pkgconfig/{blas.*,cblas.*,lapacke.*}
+ rm -r "$pkgdir"/usr/lib/cmake/{cblas*,lapacke*}
+ rm -r "$pkgdir"/usr/include
+}
+
+package_blas() {
+ pkgdesc="Basic Linear Algebra Subprograms"
+ depends=('gcc-libs')
+
+ cd build/BLAS
+ make DESTDIR="$pkgdir" install
+
+ install -m755 -d "${pkgdir}/usr/share/licenses/blas"
+ install -m644 "${srcdir}/LICENSE.blas" \
+ "${pkgdir}/usr/share/licenses/blas/"
+}
+
+package_cblas() {
+ pkgdesc="C interface to BLAS"
+ depends=("blas")
+
+ cd build/CBLAS
+ make DESTDIR="$pkgdir" install
+}
+
+package_lapacke() {
+ pkgdesc="C interface to LAPACK"
+ depends=("lapack")
+
+ cd build/LAPACKE
+ make DESTDIR="$pkgdir" install
+}
+
+package_lapack-doc() {
+ pkgdesc="Man pages for BLAS/LAPACK"
+
+ mkdir -p "$pkgdir"/usr/share
+ cp -r lapack-$pkgver/DOCS/man "$pkgdir"/usr/share
+}
diff --git a/abs/extra/lapack/__changelog b/abs/extra/lapack/__changelog
new file mode 100644
index 0000000..fc1acbd
--- /dev/null
+++ b/abs/extra/lapack/__changelog
@@ -0,0 +1 @@
+PKGBUILD: don't build lapack-doc