summaryrefslogtreecommitdiff
path: root/libs/libplacebo/MAKEPKG
blob: 8cb6ee1b70fa1b43954c707285839d54cdf6ff6b (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
#!/bin/mkpkg
# description: GPU-accelerated video/image rendering library
# url: https://code.videolan.org/videolan/libplacebo

name=libplacebo
version=7.360.1
release=1
depends=(vulkan-loader glslang mesa)
makedeps=(vulkan-headers py-jinja2 py-glad2)
source=(https://code.videolan.org/videolan/libplacebo/-/archive/v$version/$name-v$version.tar.gz)

sha256sums=(
    "14c0a99f4b01557ec9826ce6b1d52f6de21be274ba03fd5aab7307f18766dc39"
)

build() {
    cd $name-v$version

    meson setup build \
        --prefix=/usr \
        --libdir=lib \ 
        --buildtype=plain \
        --wrap-mode=nodownload \
        -D b_lto=true \
        -D b_pie=true \
        -D vulkan=enabled \
        -D opengl=enabled \
        -D d3d11=disabled \
        -D glslang=enabled \
        -D shaderc=disabled \
        -D lcms=disabled \
        -D demos=false \
        -D tests=false \
        -D bench=false

    meson compile -C build
    DESTDIR=$PKG meson install -C build
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh