rawTherapee/tools/makedeb/PKGBUILD.libjxl
Lawrence Lee 858558b497
Fix AppImage build and launch
Use an older version of linuxdeploy to work around a FUSE memory
allocation error (see
https://discuss.pixls.us/t/countdown-to-5-12/49160/6).

Override the minimum CMake version when building libjxl to fix the CMake
configuration error for the sjpeg dependency.
2025-04-03 22:13:17 -07:00

43 lines
931 B
Plaintext

# Maintainer: RawTherapee Developers
_pkgname="libjxl"
pkgname="$_pkgname"
pkgver='0.11.1'
pkgrel='1'
pkgdesc='JPEG XL image format reference implementation'
url='https://github.com/libjxl/libjxl'
license=('BSD')
arch=('amd64')
depends=('libgif-dev' 'libjpeg-dev' 'libopenexr-dev' 'libpng-dev' 'libwebp-dev')
makedepends=('cmake' 'pkg-config' 'libbrotli-dev' 'libgflags-dev')
_pkgsrc="$_pkgname"
source=("git+$url.git#tag=v$pkgver")
sha256sums=('SKIP')
prepare() {
cd "$_pkgsrc"
git submodule update --init --recursive --depth 1 --recommend-shallow
}
build() {
local _cmake_options=(
-B build
-S "$_pkgsrc"
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX='/usr'
-DJPEGXL_FORCE_SYSTEM_BROTLI=ON
-DBUILD_TESTING=OFF
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build --parallel
}
package() {
DESTDIR="$pkgdir" cmake --install build
}