Skip to content

Commit

Permalink
openblas: rebuild dependent packages
Browse files Browse the repository at this point in the history
  • Loading branch information
MehdiChinoune committed Mar 28, 2023
1 parent a48407d commit e41b743
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 46 deletions.
32 changes: 10 additions & 22 deletions mingw-w64-arpack/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}"
$([[ "${CARCH}" == "i686" ]] || echo "${MINGW_PACKAGE_PREFIX}-${_realname}64"))
pkgver=3.9.0
pkgrel=1
pkgrel=2
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64')
pkgdesc="Fortran77 subroutines designed to solve large scale eigenvalue problems (mingw-w64)"
Expand All @@ -21,7 +21,6 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-fc"
"${MINGW_PACKAGE_PREFIX}-ninja"
"${MINGW_PACKAGE_PREFIX}-openblas"
$([[ "${CARCH}" == "i686" ]] || echo "${MINGW_PACKAGE_PREFIX}-openblas64"))
provides=("${MINGW_PACKAGE_PREFIX}-${_realname}-ng")
options=('!buildflags')
source=(${_realname}-${pkgver}.tar.gz::https://github.com/opencollab/arpack-ng/archive/${pkgver}.tar.gz)
sha256sums=('24f2a2b259992d3c797d80f626878aa8e2ed5009d549dad57854bbcfb95e1ed0')
Expand Down Expand Up @@ -59,57 +58,49 @@ _build_arpack() {
}

build() {
[[ -d "${srcdir}/build-${MSYSTEM}-static-32" ]] && rm -rf "${srcdir}/build-${MSYSTEM}-static-32"
mkdir -p "${srcdir}/build-${MSYSTEM}-static-32" && cd "${srcdir}/build-${MSYSTEM}-static-32"

msg2 "Build static ARPACK with 32-bit indexing"
mkdir -p "${srcdir}/build-${MSYSTEM}-static-32" && cd "${srcdir}/build-${MSYSTEM}-static-32"
_build_arpack "-DBUILD_SHARED_LIBS=OFF"

[[ -d "${srcdir}/build-${MSYSTEM}-shared-32" ]] && rm -rf "${srcdir}/build-${MSYSTEM}-shared-32"
mkdir -p "${srcdir}/build-${MSYSTEM}-shared-32" && cd "${srcdir}/build-${MSYSTEM}-shared-32"

msg2 "Build shared ARPACK with 32-bit indexing"
mkdir -p "${srcdir}/build-${MSYSTEM}-shared-32" && cd "${srcdir}/build-${MSYSTEM}-shared-32"
_build_arpack ""


if [ "${CARCH}" != "i686" ]; then
[[ -d "${srcdir}/build-${MSYSTEM}-static-64" ]] && rm -rf "${srcdir}/build-${MSYSTEM}-static-64"
mkdir -p "${srcdir}/build-${MSYSTEM}-static-64" && cd "${srcdir}/build-${MSYSTEM}-static-64"

msg2 "Build static ARPACK with 64-bit indexing"
mkdir -p "${srcdir}/build-${MSYSTEM}-static-64" && cd "${srcdir}/build-${MSYSTEM}-static-64"
_build_arpack "-DINTERFACE64=1 -DITF64SUFFIX=_64 -DBUILD_SHARED_LIBS=OFF -DBLAS_LIBRARIES=openblas_64"

[[ -d "${srcdir}/build-${MSYSTEM}-shared-64" ]] && rm -rf "${srcdir}/build-${MSYSTEM}-shared-64"
mkdir -p "${srcdir}/build-${MSYSTEM}-shared-64" && cd "${srcdir}/build-${MSYSTEM}-shared-64"

msg2 "Build shared ARPACK with 64-bit indexing"
mkdir -p "${srcdir}/build-${MSYSTEM}-shared-64" && cd "${srcdir}/build-${MSYSTEM}-shared-64"
_build_arpack "-DINTERFACE64=1 -DITF64SUFFIX=_64 -DBLAS_LIBRARIES=openblas_64"
fi
}

check() {
cd "${srcdir}/build-${MSYSTEM}-static-32"
msg2 "Static check with 32-bit indexing"
cd "${srcdir}/build-${MSYSTEM}-static-32"
${MINGW_PREFIX}/bin/cmake --build . --target test || true

cd "${srcdir}/build-${MSYSTEM}-shared-32"
msg2 "Shared check with 32-bit indexing"
cd "${srcdir}/build-${MSYSTEM}-shared-32"
${MINGW_PREFIX}/bin/cmake --build . --target test || true

if [ "${CARCH}" != "i686" ]; then
cd "${srcdir}/build-${MSYSTEM}-static-64"
msg2 "Static check with 64-bit indexing"
cd "${srcdir}/build-${MSYSTEM}-static-64"
${MINGW_PREFIX}/bin/cmake --build . --target test || true

cd "${srcdir}/build-${MSYSTEM}-shared-64"
msg2 "Shared check with 64-bit indexing"
cd "${srcdir}/build-${MSYSTEM}-shared-64"
${MINGW_PREFIX}/bin/cmake --build . --target test || true
fi
}

package_arpack() {
pkgdesc="Fortran77 subroutines designed to solve large scale eigenvalue problems (mingw-w64)"
depends+=("${MINGW_PACKAGE_PREFIX}-openblas")
provides=("${MINGW_PACKAGE_PREFIX}-${_realname}-ng")

#Static Install
cd "${srcdir}/build-${MSYSTEM}-static-32"
Expand All @@ -131,9 +122,6 @@ package_arpack() {
package_arpack64() {
pkgdesc="Fortran77 subroutines designed to solve large scale eigenvalue problems with 64-bit indexing (mingw-w64)"
depends+=("${MINGW_PACKAGE_PREFIX}-openblas64")
provides=()
conflicts=()
replaces=()

#Static Install
cd "${srcdir}/build-${MSYSTEM}-static-64"
Expand Down
2 changes: 1 addition & 1 deletion mingw-w64-octave/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ _realname=octave
pkgbase=mingw-w64-${_realname}
pkgname=${MINGW_PACKAGE_PREFIX}-${_realname}
pkgver=8.1.0
pkgrel=2
pkgrel=3
pkgdesc="GNU Octave: Interactive programming environment for numerical computations (mingw-w64)"
url="https://www.octave.org"
license=('spdx:GPL-3.0-or-later')
Expand Down
2 changes: 1 addition & 1 deletion mingw-w64-openturns/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _realname=openturns
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=1.20
pkgrel=5
pkgrel=6
pkgdesc="Uncertainty treatment library (mingw-w64)"
license=('LGPL')
arch=(any)
Expand Down
2 changes: 1 addition & 1 deletion mingw-w64-petsc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ _realname=petsc
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}" "${MINGW_PACKAGE_PREFIX}-${_realname}-build")
pkgver=3.18.3
pkgrel=1
pkgrel=2
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
pkgdesc='Sparse iterative (non)linear solver package (mingw-w64)'
Expand Down
2 changes: 1 addition & 1 deletion mingw-w64-python-cvxopt/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
pkgver=1.3.0
pkgrel=5
pkgrel=6
pkgdesc="Convex optimization based on the Python programming language (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
Expand Down
2 changes: 1 addition & 1 deletion mingw-w64-python-scipy/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
pkgver=1.10.1
pkgrel=1
pkgrel=2
pkgdesc="SciPy is open-source software for mathematics, science, and engineering (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64')
Expand Down
2 changes: 1 addition & 1 deletion mingw-w64-qrupdate/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
conflicts=("${MINGW_PACKAGE_PREFIX}-${_realname}-svn")
replaces=("${MINGW_PACKAGE_PREFIX}-${_realname}-svn")
pkgver=1.1.5
pkgrel=3
pkgrel=4
pkgdesc="Fortran library for fast updates of QR and Cholesky decompositions (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64')
Expand Down
2 changes: 1 addition & 1 deletion mingw-w64-scalapack/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _realname=scalapack
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.2.0
pkgrel=1
pkgrel=2
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64')
pkgdesc="Scalable Linear Algebra PACKage (mingw-w64)"
Expand Down
4 changes: 2 additions & 2 deletions mingw-w64-slepc/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ pkgrel=1
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
pkgdesc="Scalable library for eigenvalue problem computations (mingw-w64)"
depends=("${MINGW_PACKAGE_PREFIX}-petsc>=${petsc_pkgver}")
depends=("${MINGW_PACKAGE_PREFIX}-openblas"
"${MINGW_PACKAGE_PREFIX}-petsc>=${petsc_pkgver}")
makedepends=("python"
"${MINGW_PACKAGE_PREFIX}-cc"
$([[ ${MINGW_PACKAGE_PREFIX} == *-clang-* ]] || echo "${MINGW_PACKAGE_PREFIX}-fc")
"${MINGW_PACKAGE_PREFIX}-petsc-build>=${petsc_pkgver}")
optdepends=("${MINGW_PACKAGE_PREFIX}-tcl: build & run test suite")
options=('strip' 'staticlibs')
license=('spdx:BSD-2-Clause')
url="https://slepc.upv.es/"
source=("https://slepc.upv.es/download/distrib/${_realname}-${pkgver}.tar.gz"
Expand Down
2 changes: 1 addition & 1 deletion mingw-w64-suitesparse/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _realname=suitesparse
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-suitesparse")
pkgver=7.0.1
pkgrel=1
pkgrel=2
pkgdesc='A suite of sparse matrix algorithms (mingw-w64)'
url="https://faculty.cse.tamu.edu/davis/suitesparse.html"
license=('spdx:LGPL-3.0-or-later AND BSD-3-Clause AND LGPL-2.1-or-later AND GPL-2.0-or-later AND LGPL-2.0-or-later AND Apache-2.0 AND GPL-3.0-or-later')
Expand Down
2 changes: 1 addition & 1 deletion mingw-w64-suitesparse5/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _realname=suitesparse5
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-suitesparse5")
pkgver=5.13.0
pkgrel=1
pkgrel=2
pkgdesc='A suite of sparse matrix algorithms (mingw-w64)'
url="https://faculty.cse.tamu.edu/davis/suitesparse.html"
license=('spdx:LGPL-3.0-or-later AND BSD-3-Clause AND LGPL-2.1-or-later AND GPL-2.0-or-later AND LGPL-2.0-or-later AND Apache-2.0 AND GPL-3.0-or-later')
Expand Down
11 changes: 4 additions & 7 deletions mingw-w64-superlu/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@ _realname=superlu
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=5.3.0
pkgrel=2
pkgrel=3
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
pkgdesc="Sparse direct linear solver (mingw-w64)"
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-openblas")
makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-cc"
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-ninja"
$( [[ ${MINGW_PACKAGE_PREFIX} == *-clang-* ]] || echo "${MINGW_PACKAGE_PREFIX}-gcc-fortran"))
$( [[ ${MINGW_PACKAGE_PREFIX} == *-clang-* ]] || echo "${MINGW_PACKAGE_PREFIX}-fc"))
optdepends=("${MINGW_PACKAGE_PREFIX}-tcl: build & run test suite")
options=('strip' 'staticlibs')
license=('spdx:BSD-3-Clause')
url='https://portal.nersc.gov/project/sparse/superlu/'
source=("https://github.com/xiaoyeli/${_realname}/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz"
Expand Down Expand Up @@ -52,7 +51,6 @@ build() {
_extra_config+=("-DXSDK_ENABLE_Fortran=OFF")
fi

[[ -d "${srcdir}/build-${MSYSTEM}-static" ]] && rm -rf "${srcdir}/build-${MSYSTEM}-static"
mkdir -p "${srcdir}/build-${MSYSTEM}-static" && cd "${srcdir}/build-${MSYSTEM}-static"

MSYS2_ARG_CONV_EXCL='-DCMAKE_INSTALL_PREFIX=' \
Expand All @@ -67,7 +65,6 @@ build() {

${MINGW_PREFIX}/bin/cmake.exe --build ./

[[ -d "${srcdir}/build-${MSYSTEM}-shared" ]] && rm -rf "${srcdir}/build-${MSYSTEM}-shared"
mkdir -p "${srcdir}/build-${MSYSTEM}-shared" && cd "${srcdir}/build-${MSYSTEM}-shared"

MSYS2_ARG_CONV_EXCL='-DCMAKE_INSTALL_PREFIX=' \
Expand Down
12 changes: 6 additions & 6 deletions mingw-w64-trilinos/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=14.0.0
_pkgver=${pkgver//./-}
pkgrel=2
pkgrel=3
pkgdesc='Algorithms for the solution of large-scale scientific problems" (mingw-w64)'
license=('LGPL3')
url="http://trilinos.org"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64')
depends=("${MINGW_PACKAGE_PREFIX}-python"
Expand All @@ -21,16 +23,15 @@ depends=("${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-matio"
"${MINGW_PACKAGE_PREFIX}-hdf5"
"${MINGW_PACKAGE_PREFIX}-msmpi")
makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-fc"
"${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-ninja"
"${MINGW_PACKAGE_PREFIX}-perl"
"${MINGW_PACKAGE_PREFIX}-fc"
"${MINGW_PACKAGE_PREFIX}-bc"
"${MINGW_PACKAGE_PREFIX}-python-numpy"
"unzip")
optdepends=("${MINGW_PACKAGE_PREFIX}-seacas")
license=('LGPL3')
url="http://trilinos.org"
source=("https://github.com/${_realname}/Trilinos/archive/refs/tags/${_realname}-release-${_pkgver}.tar.gz")
sha256sums=('054d2fabdf70fce0dfaeb20eed265bd7894045d3e00c3d1ddb72d1c77c339ca1')
noextract=(${_realname}-release-${_pkgver}.tar.gz)
Expand All @@ -41,7 +42,6 @@ prepare(){
}

build() {
[[ -d "${srcdir}/build-${MSYSTEM}" ]] && rm -rf "${srcdir}/build-${MSYSTEM}"
mkdir -p "${srcdir}/build-${MSYSTEM}" && cd "${srcdir}/build-${MSYSTEM}"

declare -a extra_config
Expand Down

0 comments on commit e41b743

Please sign in to comment.