libvncserver: backport build fix for cmake v4

This commit is contained in:
Christoph Reiter
2025-05-31 13:40:56 +02:00
parent 937b6b330a
commit 7ffb2df8f2

View File

@@ -4,7 +4,7 @@ _realname=libvncserver
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.9.15
pkgrel=2
pkgrel=3
pkgdesc="Cross-platform C libraries that allow you to easily implement VNC server or client functionality (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
@@ -31,8 +31,15 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-libssh2"
"${MINGW_PACKAGE_PREFIX}-openssl"
"${MINGW_PACKAGE_PREFIX}-SDL2")
source=("https://github.com/LibVNC/libvncserver/archive/LibVNCServer-${pkgver}.tar.gz")
sha256sums=('62352c7795e231dfce044beb96156065a05a05c974e5de9e023d688d8ff675d7')
source=("https://github.com/LibVNC/libvncserver/archive/LibVNCServer-${pkgver}.tar.gz"
"https://github.com/LibVNC/libvncserver/commit/e64fa928170f22a2e21b5bbd6d46c8f8e7dd7a96.patch")
sha256sums=('62352c7795e231dfce044beb96156065a05a05c974e5de9e023d688d8ff675d7'
'064e1643ce3258383c2de96b96a967dded5a2a8e7e0648d68ba66ca89a7d0b74')
prepare() {
cd "${_realname}-LibVNCServer-${pkgver}"
patch -p1 -i "${srcdir}"/e64fa928170f22a2e21b5bbd6d46c8f8e7dd7a96.patch
}
build() {
mkdir -p "${srcdir}"/build-${MSYSTEM} && cd "${srcdir}"/build-${MSYSTEM}