# Contributor: Leo # Maintainer: Leo pkgname=libplacebo pkgver=1.18.0 pkgrel=0 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=release \ -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="3115bbd019f4555340e64590e844de61a5fd4f02392b38a34d69059be79dcaeffc3d74b720568fb2f7f974409a8ff5feff83f7d6b7fdb2228af8761b78395339 libplacebo-1.18.0.tar.gz"