blob: ddac82d562877833a8193e7a3c8d873265c7c528 (
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
|
_plug=rife-ncnn-vulkan
pkgname=vapoursynth-plugin-${_plug}
: "${_fragment=tag=r9_mod_v33}"
pkgver=9_mod_v33
pkgrel=3
pkgdesc="Plugin for Vapoursynth: Real-Time Intermediate Flow Estimation for Video Frame Interpolation"
arch=('x86_64')
url='https://github.com/styler00dollar/VapourSynth-RIFE-ncnn-Vulkan'
license=('MIT')
depends=(
ncnn
vapoursynth
)
optdepends=(
'vapoursynth-plugin-vmaf: Skip interpolating static frames'
)
makedepends=(
cmake
git
meson
vulkan-headers
)
source=(
"${_plug}::git+${url}.git#${_fragment}"
drop_shader_pack8.patch
)
sha256sums=('97c37b497b14eae43f9cfbd0c20fa15fc9b96d9170798cdc8bda8c0c9e2c405e'
'c2feb854198de070a6114af311899d11125d37be4a6ba82d6047c82a05a50b6d')
prepare() {
mkdir -p pkgconfig
sed '1i libdir=/usr/lib' /usr/lib/pkgconfig/vapoursynth.pc >pkgconfig/vapoursynth.pc
cd "$_plug"
# https://github.com/Tencent/ncnn/pull/6270
patch -Np1 -i ../drop_shader_pack8.patch
}
pkgver() {
git -C "$_plug" describe --first-parent --tags | sed 's/^r//; s/-/+/g'
}
build() {
export PKG_CONFIG_PATH=$srcdir/pkgconfig:$PKG_CONFIG_PATH
arch-meson --libdir /usr/lib/vapoursynth -D use_system_ncnn=true "$_plug" build
meson compile -C build
}
package() {
meson install -C build --destdir "$pkgdir"
install -Dm644 -t "${pkgdir}/usr/share/doc/vapoursynth/plugins/${_plug}" "${_plug}/README.md"
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "${_plug}/LICENSE"
}
|