blob: 692dd221a5edd2da22e9d18427797fcaea300a1e (
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
86
87
88
|
# Maintainer: envolution
# Contributor: Behnam Momeni <sbmomeni [at the] gmail [dot] com>
# Contributor: Andrew Sun <adsun701 at gmail dot com>
# Contributor: orumin <dev at orum.in>
pkgbase=lib32-lapack
_basename=lapack
pkgname=(
'lib32-lapack'
'lib32-blas'
'lib32-cblas'
'lib32-lapacke'
)
pkgver=3.12.0
pkgrel=1
url="https://www.netlib.org/lapack"
pkgdesc="Linear Algebra PACKage (32-bit)"
makedepends=('gcc-fortran' 'lib32-gcc-libs' 'cmake' 'python')
arch=('x86_64')
license=(BSD-3-Clause)
source=($_basename-$pkgver.tar.gz::"https://github.com/Reference-LAPACK/lapack/archive/v$pkgver.tar.gz")
sha256sums=('eac9570f8e0ad6f30ce4b963f4f033f0f643e7c3912fc9ee6cd99120675ad48b')
build() {
mkdir -p build
cd build
export FFLAGS='-m32'
export CC='gcc -m32'
export CXX='g++ -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
cmake ../${_basename}-${pkgver} \
-DCMAKE_SKIP_RPATH=ON \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib32 \
-DCMAKE_Fortran_COMPILER=gfortran \
-DLAPACKE_WITH_TMG=ON \
-DCBLAS=ON \
-DBUILD_DEPRECATED=ON
make
}
package_lib32-lapack() {
depends=('lib32-blas' 'lapack')
install -vDm644 ${_basename}-${pkgver}/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd build
make DESTDIR="$pkgdir" install
rm -r "$pkgdir"/usr/lib32/{libblas.*,libcblas.*,liblapacke.*}
rm -r "$pkgdir"/usr/lib32/pkgconfig/{blas.*,cblas.*,lapacke.*}
rm -r "$pkgdir"/usr/lib32/cmake/{cblas*,lapacke*}
rm -r "$pkgdir"/usr/include
}
package_lib32-blas() {
pkgdesc="Basic Linear Algebra Subprograms (32-bit)"
depends=('lib32-gcc-libs' 'blas')
install -vDm644 ${_basename}-${pkgver}/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd build/BLAS
make DESTDIR="$pkgdir" install
}
package_lib32-cblas() {
pkgdesc="C interface to BLAS (32-bit)"
depends=('lib32-blas' 'cblas')
install -vDm644 ${_basename}-${pkgver}/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd build/CBLAS
make DESTDIR="$pkgdir" install
rm -r "$pkgdir"/usr/include
}
package_lib32-lapacke() {
pkgdesc="C interface to LAPACK (32-bit)"
depends=('lib32-lapack' 'lapacke')
install -vDm644 ${_basename}-${pkgver}/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd build/LAPACKE
make DESTDIR="$pkgdir" install
rm -r "$pkgdir"/usr/include
}
|