diff --git a/mingw-w64-ghdl/PKGBUILD b/mingw-w64-ghdl/PKGBUILD index 9ba5515904..2422d0e076 100644 --- a/mingw-w64-ghdl/PKGBUILD +++ b/mingw-w64-ghdl/PKGBUILD @@ -5,7 +5,7 @@ pkgname=( "${MINGW_PACKAGE_PREFIX}-${_realname}-mcode" ) pkgver=5.1.1 -pkgrel=1 +pkgrel=2 pkgdesc='GHDL: the open-source analyzer, compiler, simulator and (experimental) synthesizer for VHDL' arch=('any') mingw_arch=('mingw64' 'ucrt64') @@ -24,8 +24,15 @@ makedepends=( ) checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest") options=(!emptydirs) -source=("https://github.com/ghdl/ghdl/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz") -sha256sums=('00cd58ec8f25e2532465aabc8705f43071f20dc1d13e03fd9dc235523186fca9') +source=("https://github.com/ghdl/ghdl/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz" + 001-support-llvm-21.patch::https://github.com/ghdl/ghdl/commit/560a822c.patch) +sha256sums=('00cd58ec8f25e2532465aabc8705f43071f20dc1d13e03fd9dc235523186fca9' + '0228cc3694dc6438419073e94bdca7f4dc0334d23f2428e3aeb1171db1763ef5') + +prepare() { + cd ${_realname}-${pkgver} + patch -p1 -i "${srcdir}"/001-support-llvm-21.patch +} build() { echo "Building ghdl-llvm..."