diff --git a/mingw-w64-dosbox-staging/PKGBUILD b/mingw-w64-dosbox-staging/PKGBUILD index dc54853a51..66c7de20fb 100644 --- a/mingw-w64-dosbox-staging/PKGBUILD +++ b/mingw-w64-dosbox-staging/PKGBUILD @@ -3,7 +3,7 @@ _realname=dosbox-staging pkgbase=mingw-w64-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") -pkgver=0.82.1 +pkgver=0.82.2 pkgrel=1 pkgdesc="Emulator with builtin DOS for running DOS Games (mingw-w64)" arch=('any') @@ -27,8 +27,10 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc" "${MINGW_PACKAGE_PREFIX}-meson" "${MINGW_PACKAGE_PREFIX}-ninja" "${MINGW_PACKAGE_PREFIX}-pkgconf") -source=("https://github.com/dosbox-staging/dosbox-staging/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz") -sha256sums=('9d943d6610b6773cb0b27ba24904c85459757fbbfa0f34c72e76082132f77568') +source=("https://github.com/dosbox-staging/dosbox-staging/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz" + "enet.h::https://github.com/zpl-c/enet/raw/refs/tags/v2.6.5/include/enet.h") +sha256sums=('387c97b373c3164ab5abbbc2b210bf94b5567057abe44ee1e8b4d4e725bd422c' + '6cb8f4606f064650e46d7d295c19f2885aa94eb07b6222c5c9c97ecf6c493603') noextract=("${_realname}-${pkgver}.tar.gz") prepare() { @@ -36,6 +38,11 @@ prepare() { cd "${_realname}-${pkgver}" echo -e "#!python\nprint('${pkgver}')" > scripts/get-version.sh + + # Use newer enet.h v2.6.5 (from https://github.com/zpl-c/enet), because that + # has some fixes which are not in the older version 2.3.6 used by dosbox-staging + # and would cause compile errors instead. + cp ${srcdir}/enet.h src/libs/enet/include/enet.h } build() {