blob: 0bd82a65b68177478c1303456f7020fd2c051438 (
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
|
# Maintainer: Josh Holmer <jholmer.in@gmail.com>
_plug=resize2
pkgname=vapoursynth-plugin-${_plug}-git
pkgver=r18.f2c97f8
pkgrel=1
pkgdesc="Plugin for VapourSynth: ${_plug} (GIT version)"
arch=('x86_64')
url='https://github.com/Jaded-Encoding-Thaumaturgy/vapoursynth-resize2'
license=('LGPL')
depends=('vapoursynth' 'zimg')
makedepends=('git' 'meson' 'ninja')
provides=("vapoursynth-plugin-${_plug}")
conflicts=("vapoursynth-plugin-${_plug}")
source=("${_plug}::git+https://github.com/Jaded-Encoding-Thaumaturgy/vapoursynth-resize2.git")
sha256sums=('SKIP')
pkgver() {
cd "${_plug}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${_plug}"
meson subprojects download
# The build script hardcodes -static and a local vapoursynth include dir,
# but -static builds for this fail on Arch, and we want to use the system vapoursynth
sed -i "s|link_args: \['-static'],|#link_args: \['-static'],|" meson.build
sed -i "s|include_directories('vapoursynth/include'),|#include_directories('vapoursynth/include'),|" meson.build
arch-meson build \
--buildtype=release \
--libdir /usr/lib/vapoursynth
}
build() {
cd "${_plug}"
meson compile -C build
}
package() {
cd "${_plug}"
DESTDIR="${pkgdir}" meson install -C build
install -Dm644 ReadMe.md "${pkgdir}/usr/share/doc/vapoursynth/plugins/${_plug}/README.md"
}
|