blob: e5c0d9911fde835ac2f91bb94e1bf85c39e6fd47 (
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=7.350.0.3601.g5ba13768
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=(
'gcc-libs'
'glibc'
'glslang' #'libSPIRV.so'
'libdovi' 'libdovi.so'
'lcms2' 'liblcms2.so'
'shaderc' 'libshaderc_shared.so'
'libunwind'
'vulkan-icd-loader' 'libvulkan.so'
'xxhash' 'libxxhash.so'
)
makedepends=(
'git'
'meson'
'ninja'
'vulkan-headers'
'python-jinja'
'python-markupsafe'
'glad'
)
_pkgver=$(echo $pkgver | cut -d . -f 1-3)
provides=(
"libplacebo=${_pkgver}"
'libplacebo.so'
)
conflicts=('libplacebo')
source=(
'git+https://code.videolan.org/videolan/libplacebo.git'
'git+https://github.com/fastfloat/fast_float.git'
)
sha256sums=(
'SKIP'
'SKIP'
)
options=('debug')
pkgver() {
cd libplacebo
# echo "$(git describe --long --tags | sed 's|-rc|rc|g' | tr - . | tr -d v)"
_major_ver="$(cat meson.build | sed -ne '/Major version/{N;p}' | tail -n1 | grep -o "[[:digit:]]*")"
_api="$(cat meson.build | sed -ne '/API version/{N;N;p}' | cut -d ':' -f1 | tail -n1 | grep -o "[[:digit:]]*")"
_fix_ver="$(cat meson.build | sed -ne '/Fix version/{N;p}' | tail -n1 | grep -o "[[:digit:]]*")"
echo "${_major_ver}.${_api}.${_fix_ver}.$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p build
cd libplacebo
git config submodule.3rdparty/fast_float.url "${srcdir}/fast_float"
git -c protocol.file.allow=always submodule update --init \
3rdparty/fast_float
}
build() {
cd "${srcdir}/build"
arch-meson ../libplacebo \
-D vulkan=enabled \
-D lcms=enabled \
-D d3d11=disabled \
-D tests=true \
-D demos=false
ninja
}
check() {
ninja -C build test || true
}
package() {
DESTDIR="${pkgdir}" ninja -C build install
install -Dm644 libplacebo/README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
|