libultrahdr: backport clamping fix

This commit is contained in:
Miloš Komarčević 2025-10-13 17:26:49 +02:00 committed by Dirk Stolle
parent 33b9337c49
commit 39c032fad0

View File

@ -4,7 +4,7 @@ _realname=libultrahdr
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.4.0
pkgrel=2
pkgrel=3
pkgdesc="Library for encoding and decoding ultrahdr images (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
@ -21,10 +21,12 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-winpthreads")
source=("https://github.com/google/libultrahdr/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz"
"001-pkg-config.patch"
"https://github.com/google/libultrahdr/commit/6db3a83ee2b1f79850f3f597172289808dc6a331.patch")
"https://github.com/google/libultrahdr/commit/6db3a83ee2b1f79850f3f597172289808dc6a331.patch"
"https://github.com/google/libultrahdr/commit/5ed39d67cd31d254e84ebf76b03d4b7bcc12e2f7.patch")
sha512sums=('2282bed4ae353f3b43039ca69b699754f9ef7e1611f321bf27ad1e50e7894953b8e44f28cbe215c186b5b037682a6d5733c6e7c638444d29fdcb5a661294c075'
'ccaa15bc71c0c4a88044bd35ab929b88763cf20838f6e3b0bf7b3623ea851649e97fb0dac633a1160af805d63634a1f98e4f5f19415a7647d589f23c63f08add'
'124e7a24857148f08862a3b6b32af69618076bae485e053e1446fb8592b0b3e449b1a66dc1c758aacbc8a4a97dc2e813b607875199809b5b7127db2f869f8d83')
'124e7a24857148f08862a3b6b32af69618076bae485e053e1446fb8592b0b3e449b1a66dc1c758aacbc8a4a97dc2e813b607875199809b5b7127db2f869f8d83'
'bc63d46069a9de79ed2eb04f5a3a220dbff69e56ff2839ccaca401ced56ca3064325480db42069dad03f2ccaadcec4dc848baced9c3142f012b9fb2553682386')
prepare() {
cd "${_realname}-${pkgver}"
@ -34,6 +36,9 @@ prepare() {
# https://github.com/google/libultrahdr/pull/356
patch -Np1 -i "${srcdir}"/6db3a83ee2b1f79850f3f597172289808dc6a331.patch
# https://github.com/google/libultrahdr/issues/372
patch -Np1 -i "${srcdir}"/5ed39d67cd31d254e84ebf76b03d4b7bcc12e2f7.patch
}
build() {