slepc: Update to 3.23.0 and enable aarch64 builds
This commit is contained in:
parent
f729fdf475
commit
d94c7eea0c
@ -27,10 +27,10 @@
|
||||
_realname=slepc
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||
pkgver=3.22.1
|
||||
pkgver=3.23.0
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
mingw_arch=('mingw64' 'ucrt64' 'clang64')
|
||||
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||
pkgdesc="Scalable library for eigenvalue problem computations (mingw-w64)"
|
||||
url="https://slepc.upv.es/"
|
||||
msys2_repository_url="https://gitlab.com/slepc/slepc"
|
||||
@ -38,9 +38,12 @@ msys2_references=(
|
||||
'aur: slepc'
|
||||
)
|
||||
license=('spdx:BSD-2-Clause')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-petsc")
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-petsc"
|
||||
$([[ ${MINGW_PACKAGE_PREFIX} == *-clang-* ]] || echo "${MINGW_PACKAGE_PREFIX}-gcc-libgfortran"))
|
||||
makedepends=("python"
|
||||
"${MINGW_PACKAGE_PREFIX}-cc"
|
||||
"${MINGW_PACKAGE_PREFIX}-pkgconf"
|
||||
$([[ ${CARCH} == aarch64 ]] || echo "${MINGW_PACKAGE_PREFIX}-msmpi")
|
||||
$([[ ${MINGW_PACKAGE_PREFIX} == *-clang-* ]] || echo "${MINGW_PACKAGE_PREFIX}-fc")
|
||||
"${MINGW_PACKAGE_PREFIX}-petsc-build")
|
||||
optdepends=("${MINGW_PACKAGE_PREFIX}-tcl: build & run test suite")
|
||||
@ -50,7 +53,7 @@ source=("https://slepc.upv.es/download/distrib/${_realname}-${pkgver}.tar.gz"
|
||||
'buildme-0.tm'
|
||||
'xyz-0.tm')
|
||||
noextract=("${_realname}-${pkgver}.tar.gz")
|
||||
sha256sums=('badb5cb038d09dbf1cc8f34d194673ab011c69cc46888101955c786d21c8d8c9'
|
||||
sha256sums=('78252f7b2f540c5fdadadee0fd21f3e6eff810f82cb45482f327b524c8db63d0'
|
||||
'1c341cd82f6bd8db447a21f88ba81378605ca6b0eabc443212d53fad6113c9fe'
|
||||
'8d8f5670ffdf34a10b0d027bff976131824e2e6b053f8a13d207ecddd4663d6d'
|
||||
'd0db2aa573c9aaf57b30cb3c2bd7c66e1677f3f468002f467da98b75943076b1'
|
||||
@ -65,6 +68,17 @@ prepare() {
|
||||
build() {
|
||||
. ${MINGW_PREFIX}/src/petsc/petsc
|
||||
cd "${srcdir}/build-${MSYSTEM}/${_realname}-${pkgver}"
|
||||
|
||||
declare extra_libs=""
|
||||
|
||||
if [[ ${CARCH} != aarch64 ]]; then
|
||||
extra_libs="$(pkg-config msmpi --libs)"
|
||||
fi
|
||||
|
||||
if [[ ${MINGW_PACKAGE_PREFIX} != *-clang-* ]]; then
|
||||
extra_libs+=" -lgfortran"
|
||||
fi
|
||||
|
||||
for build in ${petsc_builds}; do
|
||||
export SLEPC_DIR=`pwd`
|
||||
export PETSC_ARCH=${build}
|
||||
@ -79,7 +93,7 @@ build() {
|
||||
${CC} -shared -Wl,--enable-auto-import -Wl,--export-all-symbols \
|
||||
-o lib${_realname}-${build}.dll -Wl,--out-implib,lib${_realname}.dll.a \
|
||||
-Wl,--whole-archive lib${_realname}.a -Wl,--no-whole-archive \
|
||||
$(pkg-config msmpi petsc-${build} --libs) $(pkg-config openblas --libs)
|
||||
$(pkg-config petsc-${build} --libs) $(pkg-config openblas --libs) ${extra_libs}
|
||||
)
|
||||
done
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user