# Contributor: Alex Yam # Contributor: Leo # Maintainer: Simon Zeni pkgname=libplacebo pkgver=6.292.1 pkgrel=0 # rc testing _pkgver=${pkgver/_/-} pkgdesc="Reusable library for GPU-accelerated video/image rendering" url="https://code.videolan.org/videolan/libplacebo" arch="all" license="LGPL-2.1-or-later" makedepends=" glslang-dev glslang-static lcms2-dev libdovi-dev meson py3-glad py3-mako shaderc-dev spirv-tools-dev vulkan-loader-dev " subpackages="$pkgname-dev" source="https://code.videolan.org/videolan/libplacebo/-/archive/v$_pkgver/libplacebo-v$_pkgver.tar.gz" builddir="$srcdir/libplacebo-v$_pkgver" build() { CFLAGS="$CFLAGS -O2" \ CXXFLAGS="$CXXFLAGS -O2" \ abuild-meson \ -Db_lto=true \ -Dbackend_max_links=4 \ -Ddemos=false \ -Ddovi=enabled \ -Dglslang=enabled \ -Dlcms=enabled \ -Dlibdovi=enabled \ -Dshaderc=enabled \ -Dtests="$(want_check && echo true || echo false)" \ -Dvulkan=enabled \ . output meson compile -C output } check() { meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } sha512sums=" 8d22b0c507fdd3b331fd515f14c9eb5fa9ec4cc95c0e89fc383ebb9ab37a8845eab4e52e9e0fa06b7ea35e71c8ec0bafabbdbc85e9700d051cf06f6f6cea6a51 libplacebo-v6.292.1.tar.gz "