db-move: moved gvfs from [testing] to [extra] (x86_64)
[arch-packages.git] / libplacebo / trunk / PKGBUILD
blob8aa940bc6f6dcbe9a7bbd7d72cc8490f46a91dce
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
3 pkgname=libplacebo
4 pkgver=5.229.2
5 pkgrel=2
6 pkgdesc='Reusable library for GPU-accelerated video/image rendering primitives'
7 url='https://github.com/haasn/libplacebo'
8 arch=('x86_64')
9 license=('LGPL2.1')
10 depends=('vulkan-icd-loader' 'libvulkan.so' 'glslang' 'lcms2' 'liblcms2.so' 'shaderc' 'libshaderc_shared.so'
11          'glibc' 'gcc-libs' 'libunwind')
12 makedepends=(
13   'meson' 'ninja' 'vulkan-headers' 'glad' 'nuklear'
14   'python' 'python-setuptools' 'python-mako' 'python-markupsafe' 'python-jinja'
16 provides=('libplacebo.so')
17 source=(https://code.videolan.org/videolan/libplacebo/-/archive/v${pkgver}/libplacebo-v${pkgver}.tar.gz)
18 sha512sums=('56723bb3df4229ecaa61189080f108ac7c953b435b9969f7fe85835eeaca88ee8ec90ef9dfdd5e99e92d4cccea5b8e24c676d3b318ab8e22ead09c003b3c6165')
19 b2sums=('d828cf97713a9d46c983da111c5400487d02e9c3d8ec874de67d9f9d753508e7dc941cfdcdd024e78ea7e08e0f3d6a71b82f92e3478ed9d8a8cadbc86462b236')
21 build() {
22   cd ${pkgbase}-v${pkgver}
23   CXXFLAGS+=" -I/usr/include/glslang"
24   arch-meson build \
25     -D tests=true \
26     -D vulkan=enabled \
27     -D glslang=enabled \
28     -D shaderc=enabled \
29     -D lcms=enabled \
30     -D d3d11=disabled \
31     -D demos=false
32   ninja -C build
35 check() {
36   cd ${pkgbase}-v${pkgver}
37   ninja -C build test
40 package() {
41   cd ${pkgbase}-v${pkgver}
42   DESTDIR="${pkgdir}" ninja -C build install
43   install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
46 # vim: ts=2 sw=2 et: