summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e27c9936f580e2987aeb258ffc90a671cd815a1c (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
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>

_plug=vsakarin
pkgname=vapoursynth-plugin-${_plug}-git
pkgver=0.96f.r128.6d7c733
pkgrel=1
pkgdesc="Plugin for Vapoursynth: ${_plug} (GIT version)"
arch=('x86_64')
url='https://github.com/akarinVS/vapoursynth-plugin.git'
license=('GPL')
depends=(
  'vapoursynth'
  'gcc-libs' # libgcc_s.so libstdc++.so
  'glibc' # ld-linux-x86-64.so libc.so libm.so
  'llvm-libs' # libLLVM-18.so
  )
makedepends=(
  'git'
  'meson'
  'llvm'
)
provides=("vapoursynth-plugin-${_plug}")
conflicts=("vapoursynth-plugin-${_plug}")
source=(
  "${_plug}::git+https://github.com/Jaded-Encoding-Thaumaturgy/akarin-vapoursynth-plugin.git"
  "https://github.com/AkarinVS/vapoursynth-plugin/pull/23.diff"
)
sha256sums=(
  'SKIP'
  '60a93b109081d2d5e13375faa788a05db938f4769b7c995cc4130c94c79c37d3'
  )
options=('debug')

pkgver() {
  cd "${_plug}"
  printf "0.96f.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  patch -d "${_plug}" -p1 -i "${srcdir}/23.diff"
}

build() {
  arch-meson "${_plug}" build \
    --buildtype=release \
    -Dstatic-llvm=false

  meson compile -C build
}

package() {
  DESTDIR="${pkgdir}" meson install -C build

  install -Dm644 "${_plug}/README.md" "${pkgdir}/usr/share/doc/vapoursynth/plugins/${_plug}/README.md"
}