From 45b9c6343441ea98b6ff3a31ff213f8fbd538672 Mon Sep 17 00:00:00 2001 From: kth5 Date: Tue, 19 Nov 2024 11:57:21 +0100 Subject: [PATCH] * update libblastrampoline to 5.12.0-1 --- libblastrampoline/.SRCINFO | 8 +++++--- libblastrampoline/PKGBUILD | 19 +++++++++++++++---- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/libblastrampoline/.SRCINFO b/libblastrampoline/.SRCINFO index a6c6adb85d..2d23dda223 100644 --- a/libblastrampoline/.SRCINFO +++ b/libblastrampoline/.SRCINFO @@ -1,14 +1,16 @@ pkgbase = libblastrampoline pkgdesc = Using PLT trampolines to provide a BLAS and LAPACK demuxing library - pkgver = 5.10.0 + pkgver = 5.12.0 pkgrel = 1 url = https://github.com/JuliaLinearAlgebra/libblastrampoline arch = x86_64 + arch = powerpc64le + arch = riscv64 license = MIT makedepends = git depends = glibc options = !lto - source = git+https://github.com/JuliaLinearAlgebra/libblastrampoline#tag=v5.10.0 - sha256sums = 81fc4d666654685e7a867cb82008647b7053ff348ad0fbd7b9e7a9213a938d75 + source = git+https://github.com/JuliaLinearAlgebra/libblastrampoline#tag=v5.12.0 + sha256sums = ad564955a936a02f7c7f71c4f9337971affb0cbe01669f9398a92b1932b86bee pkgname = libblastrampoline diff --git a/libblastrampoline/PKGBUILD b/libblastrampoline/PKGBUILD index a7d8115348..8f72fa81a0 100644 --- a/libblastrampoline/PKGBUILD +++ b/libblastrampoline/PKGBUILD @@ -2,8 +2,8 @@ # Maintainer: Antonio Rojas pkgname=libblastrampoline -pkgver=5.10.0 -pkgrel=1.1 +pkgver=5.12.0 +pkgrel=1 pkgdesc='Using PLT trampolines to provide a BLAS and LAPACK demuxing library' arch=(x86_64 powerpc64le riscv64) url='https://github.com/JuliaLinearAlgebra/libblastrampoline' @@ -11,15 +11,26 @@ license=(MIT) depends=(glibc) makedepends=(git) source=(git+https://github.com/JuliaLinearAlgebra/libblastrampoline#tag=v$pkgver) -sha256sums=('81fc4d666654685e7a867cb82008647b7053ff348ad0fbd7b9e7a9213a938d75') +sha256sums=('ad564955a936a02f7c7f71c4f9337971affb0cbe01669f9398a92b1932b86bee') options=(!lto) build() { cd $pkgname/src + + case "${CARCH}" in + powerpc64le) MYARCH="powerpc64le" ;; + riscv64) MYARCH="riscv64" ;; + x86_64) MYARCH="x86_64" ;; + *) + echo "unsupported architecture" + return 1 + ;; + esac + make\ COMPLEX_RETSTYLE_AUTODETECTION=0 \ F2C_AUTODETECTION=0 \ - LBT_CFLAGS="$CFLAGS -fPIC -D_GNU_SOURCE" \ + LBT_CFLAGS="$CFLAGS -fPIC -D_GNU_SOURCE -DARCH_${MYARCH}" \ LBT_LDFLAGS="-shared $LDFLAGS" }