OCaml 4.14.0 rebuild
[arch-packages.git] / libplacebo / trunk / PKGBUILD
blobeaea17b27ed2e7cebbd434ad24cbe986bbcd65a7
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
3 pkgname=libplacebo
4 pkgver=4.208.0
5 pkgrel=1
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          'libepoxy' 'libglvnd' 'glibc' 'gcc-libs')
12 makedepends=('meson' 'ninja' 'vulkan-headers' 'python' 'python-mako')
13 provides=('libplacebo.so')
14 source=(https://code.videolan.org/videolan/libplacebo/-/archive/v${pkgver}/libplacebo-v${pkgver}.tar.gz)
15 sha512sums=('5d4b9a9d61dcd61c716bf9bbb22b9a0976f5d42069a46993da9b9b5625a6c75c352b353f74ec74f80f91f6bb1acb96dd7809d36e80ad1a8e64aab62d07107ffa')
16 b2sums=('1ad2b10f007dc26b51621dc54b93f1d9d4dd970b79181dee6a3ce103b5fccf4cabfdbb2b446084c18e5e80b4f22b137d8a05efd5f857513f1fbe3d9b6af4e3bb')
18 build() {
19   cd ${pkgbase}-v${pkgver}
20   CXXFLAGS+=" -I/usr/include/glslang"
21   arch-meson build \
22     -D tests=true \
23     -D vulkan=enabled \
24     -D glslang=enabled \
25     -D shaderc=enabled \
26     -D lcms=enabled \
27     -D d3d11=disabled
28   ninja -C build
31 check() {
32   cd ${pkgbase}-v${pkgver}
33   ninja -C build test
36 package() {
37   cd ${pkgbase}-v${pkgver}
38   DESTDIR="${pkgdir}" ninja -C build install
39   install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
42 # vim: ts=2 sw=2 et: