blob: f91f42aeb9aa83442ff0ca94ea8c050c089e4d51 (
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
|
# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=openblas
pkgver=0.2.14
pkgrel=0
pkgdesc="A fast BSD-licensed BLAS based on gotoBLAS2, with LAPACK"
url="http://www.openblas.net"
arch="all"
license="BSD"
depends=""
depends_dev="gfortran"
makedepends="$depends_dev perl"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::http://github.com/xianyi/OpenBLAS/archive/v$pkgver.tar.gz"
_builddir="$srcdir"/OpenBLAS-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
#USE_OPENMP=0: see GCC bug 60035
#NO_AFFINITY: don't expect to work on musl, also breaks R
#DYNAMIC_ARCH=1 requires 00-cpuid.patch
make USE_OPENMP=0 NO_LAPACK=0 NUM_THREADS=8 MAJOR_VERSION=3 \
NO_AFFINITY=1 DYNAMIC_ARCH=1 PREFIX=/usr || return 1
}
package() {
cd "$_builddir"
mkdir -pm 0755 "$pkgdir/usr/lib" "$pkgdir/usr/include" \
"$pkgdir/usr/share/doc/$pkgname" || return 1
make USE_OPENMP=0 NO_LAPACK=0 NUM_THREADS=2 MAJOR_VERSION=3 \
NO_AFFINITY=1 DYNAMIC_ARCH=1 PREFIX="$pkgdir/usr" install || return 1
for FILE in *.txt *.md LICENSE; do
install -m 0644 $FILE "$pkgdir/usr/share/doc/$pkgname" || return 1
done
}
md5sums="53cda7f420e1ba0ea55de536b24c9701 openblas-0.2.14.tar.gz"
sha256sums="2411c4f56f477b42dff54db2b7ffc0b7cf53bb9778d54982595c64cc69c40fc1 openblas-0.2.14.tar.gz"
sha512sums="8ab1e50cad6fe403addd892e0eebd008cd5009e33f9b29c19a6bc4c8623b6af055fe43d896edbe3ecbda0f5f8c208c2965ad56d2c6945442cce0ec7f3606452f openblas-0.2.14.tar.gz"
|