tfel (mfront): update to 5.0.1 (#24259)

This commit is contained in:
Rafal 2025-05-12 19:20:43 +02:00 committed by GitHub
parent 64ccbb7328
commit da25194b86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@
_realname=tfel
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=5.0.0
pkgver=5.0.1
pkgrel=1
pkgdesc='MFront: a code generation tool dedicated to material knowledge (mingw-w64)'
arch=('any')
@ -18,26 +18,12 @@ makedepends=("unzip"
$([[ ${MINGW_PACKAGE_PREFIX} == *-clang-* ]] || echo "${MINGW_PACKAGE_PREFIX}-gcc-fortran") )
license=('spdx:GPL-3.0-or-later')
url='https://tfel.sourceforge.io/'
source=(https://github.com/thelfer/${_realname}/archive/TFEL-${pkgver}.zip
"fix_zmat.patch::https://github.com/thelfer/tfel/commit/3f42cd05b256deeb80e795b9c35f11dca35b7e39.patch")
sha256sums=('02a0aa6e60e0ae4dd6103171462f394197e3fdb8a96a295c313a8d853966acda'
'd0d958d54e43c82fc94e4e9140d52520cfd07c8186df6f7d683d3af723bda9c4')
source=(https://github.com/thelfer/${_realname}/archive/TFEL-${pkgver}.zip)
sha256sums=('bf8ce82ab00d8472f9c7bd2640efc419e400b08c6ef04b6464af799c8216f589')
noextract=("TFEL-${pkgver}.zip") # bsdtar could not unpack this archive
apply_patch_with_msg() {
for _patch in "$@"
do
msg2 "Applying $_patch"
patch -Np1 -i "${srcdir}/$_patch"
done
}
prepare() {
unzip -oq TFEL-${pkgver}.zip -d "${srcdir}"
cd ${_realname}-TFEL-${pkgver}
apply_patch_with_msg \
fix_zmat.patch
}
build() {