summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a935ee5cf39946846d3d55a9fbae5a7b2808729d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>

pkgname='libplacebo-git'
pkgver=4.208.0.58.gb8928ff
pkgrel=1
pkgdesc='Reusable library for GPU-accelerated video/image rendering primitives. (GIT version)'
url='https://code.videolan.org/videolan/libplacebo'
arch=('x86_64')
license=('LGPL2.1')
depends=('libvulkan.so'
         'liblcms2.so'
         'glslang'
         'libepoxy'
         'glfw'
         'libshaderc_shared.so'
         'libavcodec.so'
         'libavutil.so'
         'libavformat.so'
         )
makedepends=('git'
             'meson'
             'ninja'
             'vulkan-headers'
             'vulkan-icd-loader'
             'python-mako'
             'python-jinja'
             'python-markupsafe'
             'ffmpeg'
             'lcms2'
             'shaderc'
             'dav1d'
             )
provides=('libplacebo'
          'libplacebo.so'
          )
conflicts=('libplacebo')
source=('git+https://code.videolan.org/videolan/libplacebo.git'
        'git+https://github.com/Immediate-Mode-UI/Nuklear.git'
        'git+https://github.com/Dav1dde/glad.git'
        )
sha256sums=('SKIP'
            'SKIP'
            'SKIP'
            )
options=('debug')

pkgver() {
  cd libplacebo
  echo "$(git describe --long --tags | tr -d v| tr - .)"
}

prepare() {
  mkdir -p build

  cd libplacebo
  git config submodule.demos/3rdparty/nuklear.url "${srcdir}/Nuklear"
  git submodule update --init \
    3rdparty/glad \
    demos/3rdparty/nuklear
}

build() {
  cd "${srcdir}/build"
  arch-meson ../libplacebo \
    -D vulkan=enabled \
    -D glslang=enabled \
    -D shaderc=enabled \
    -D lcms=enabled \
    -D d3d11=disabled \
    -D tests=true \
    -D demos=false

   LC_ALL=C ninja

}

check() {
  ninja -C build test
}

package() {

  DESTDIR="${pkgdir}" ninja -C build install

  install -Dm644 libplacebo/README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}