blob: 7292777a8e221918e47f1515aeaf063a6423869c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgbase=lapack-git
pkgname=('lapack-git' 'blas-git' 'lapacke-git')
pkgver=3.11.0.r213.gae2f14fe1
pkgrel=1
pkgdesc="Linear Algebra PACKage"
arch=('i686' 'x86_64')
url="https://www.netlib.org/lapack/"
license=('custom')
makedepends=('git' 'gcc-fortran' 'cmake' 'python' 'doxygen')
source=("git+https://github.com/Reference-LAPACK/lapack.git")
sha256sums=('SKIP')
pkgver() {
cd "lapack"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "lapack"
doxygen "DOCS/Doxyfile_man"
cmake \
-B "_build" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DCMAKE_Fortran_COMPILER=gfortran \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_DEPRECATED=ON \
-DCBLAS=ON \
-DLAPACKE_WITH_TMG=ON \
./
make -C "_build"
}
package_lapack-git() {
depends=('gcc-libs' 'blas')
provides=("lapack=$pkgver" 'lapack-manpages')
conflicts=('lapack' 'lapack-manpages')
cd "lapack"
make -C "_build" DESTDIR="$pkgdir" install
rm -r "$pkgdir/usr/include"
rm -r "$pkgdir/usr/lib"/{libblas.*,libcblas.*,liblapacke.*}
rm -r "$pkgdir/usr/lib/cmake"/{cblas*,lapacke*}
rm -r "$pkgdir/usr/lib/pkgconfig"/{blas.*,cblas.*,lapacke.*}
install -dm755 "$pkgdir/usr/share"
cp -r "DOCS/man" "$pkgdir/usr/share"
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/lapack"
}
package_blas-git() {
pkgdesc="Basic linear algebra subprograms"
url="https://www.netlib.org/blas/"
depends=('gcc-libs')
provides=("blas=$pkgver" "cblas=$pkgver")
conflicts=('blas' 'cblas')
cd "lapack"
make -C "_build/BLAS" DESTDIR="$pkgdir" install
make -C "_build/CBLAS" DESTDIR="$pkgdir" install
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/blas"
}
package_lapacke-git() {
pkgdesc="C Interface to LAPACK"
url="https://www.netlib.org/lapack/lapacke.html"
depends=('glibc' 'lapack')
provides=("lapacke=$pkgver")
conflicts=('lapacke')
cd "lapack"
make -C "_build/LAPACKE" DESTDIR="$pkgdir" install
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/lapacke"
}
|