Created
May 13, 2021 21:47
-
-
Save andrewSC/6acfca87db8ed269f9a6b59d1c3f6a0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com> | |
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org> | |
pkgname=libplacebo-git | |
pkgver=v3.120.1.112.g5a6fabe | |
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=('vulkan-icd-loader' 'libvulkan.so' 'glslang' 'lcms2' 'liblcms2.so' 'shaderc' 'libshaderc_shared.so' | |
'libepoxy' 'libglvnd' 'glibc' 'gcc-libs') | |
makedepends=('meson' 'ninja' 'vulkan-headers' 'python' 'python-mako' 'git') | |
provides=('libplacebo' | |
'libplacebo.so' | |
) | |
conflicts=('libplacebo') | |
source=('git+https://code.videolan.org/videolan/libplacebo.git') | |
sha256sums=('SKIP') | |
pkgver() { | |
cd libplacebo | |
echo "$(git describe --long --tags | tr - .)" | |
} | |
prepare() { | |
mkdir -p build | |
} | |
build() { | |
cd build | |
CXXFLAGS+=" -I/usr/include/glslang" | |
arch-meson ../libplacebo \ | |
-D vulkan=enabled \ | |
-D glslang=enabled \ | |
-D shaderc=enabled \ | |
-D lcms=enabled \ | |
-D tests=true | |
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" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to
makepkg
using thisPKGBUILD
gives the following:To fix, it looks like
spirv-cross
has to be installed from AUR.Next, you will get
To fix, it looks like
d3d11
has to be disabled in themeson
options, like in the originalPKGBUILD
.