# Contributor: Leo # Maintainer: pkgname=libplacebo pkgver=1.29.1 pkgrel=1 pkgdesc="Reusable library for GPU-accelerated video/image rendering" url="https://github.com/haasn/libplacebo" arch="all" license="LGPL-2.1-or-later" makedepends=" meson vulkan-loader-dev glslang-static glslang-dev shaderc-dev vulkan-headers lcms2-dev " subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/haasn/libplacebo/archive/v$pkgver.tar.gz" build() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=debugoptimized \ -Dvulkan=enabled \ -Dglslang=enabled \ -Dshaderc=enabled \ -Dtests=true \ -Dlcms=enabled \ . output ninja -C output } check() { ninja -C output test } package() { DESTDIR="$pkgdir" ninja -C output install } sha512sums="8cf1a53ec601d6b244dfa91501ed2beb3b8c58637c934785db53d33e339add0874369d6fd74deede332fab485e8af80e7fcc37b97c93be123ce1f9ea3b90fddc libplacebo-1.29.1.tar.gz"