summaryrefslogtreecommitdiff
path: root/libs/openblas/MAKEPKG
blob: 22d2ec2afa06b2e3a202f6804d7094900c56c181 (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
#!/bin/mkpkg
# description: Optimized BLAS/LAPACK library
# url: https://www.openblas.net/

name=openblas
version=0.3.34
release=1
makedeps=()
source=(https://github.com/OpenMathLib/OpenBLAS/releases/download/v$version/OpenBLAS-$version.tar.gz)

sha256sums=(
    "cd7e129868320cc2d033afa920e31202dfe0b8066a5b66661900ccc0f197dfed"
)

build() {
    cd OpenBLAS-$version
    
    make \
        CC=clang \
        HOSTCC=clang \
        NOFORTRAN=1 \
        BUILD_LAPACK_DEPRECATED=0 \
        DYNAMIC_ARCH=0 \
        USE_THREAD=1 \
        USE_OPENMP=0 \
        NUM_THREADS=64 \
        PREFIX=/usr \
        -j$(nproc)
    
    make install \
        PREFIX="$PKG/usr" \
        NOFORTRAN=1
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh