zopfli: add msys2_references + fix CMake build error (#24860)

This commit is contained in:
Dirk Stolle 2025-07-16 20:00:46 +02:00 committed by GitHub
parent 16d0ed0f79
commit 2f86f82108
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,12 +4,16 @@ _realname=zopfli
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=1.0.3
pkgrel=2
pkgrel=3
pkgdesc="A C library to perform very good, but slow, deflate or zlib compression (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
url="https://github.com/google/zopfli"
license=('spdx:Apache-2.0')
msys2_references=(
'anitya: 6604'
'archlinux: zopfli'
)
depends=("${MINGW_PACKAGE_PREFIX}-cc-libs")
makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-cc")
@ -66,6 +70,7 @@ build() {
-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
"${extra_config[@]}" \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
../zopfli-zopfli-${pkgver}
make
@ -76,6 +81,7 @@ build() {
-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
"${extra_config[@]}" \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
../zopfli-zopfli-${pkgver}
make
}