Skip to content

Instantly share code, notes, and snippets.

@andrewSC
Created May 13, 2021 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewSC/6acfca87db8ed269f9a6b59d1c3f6a0e to your computer and use it in GitHub Desktop.
Save andrewSC/6acfca87db8ed269f9a6b59d1c3f6a0e to your computer and use it in GitHub Desktop.
# 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"
}
@DAC324
Copy link

DAC324 commented Sep 14, 2021

Trying to makepkg using this PKGBUILD gives the following:

Run-time dependency spirv-cross-c-shared found: NO (tried pkgconfig and cmake)

To fix, it looks like spirv-cross has to be installed from AUR.

Next, you will get

../libplacebo/src/meson.build:48:0: ERROR: C shared or static library 'version' not found

To fix, it looks like d3d11 has to be disabled in the meson options, like in the original PKGBUILD.

-D d3d11=disabled \
-D tests=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment