summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a2a536f714f803d6b0bcc843d38d40562417cf31 (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
# Maintainer: Damian Höster <damian dot hoester at posteo dot de>

_plug=vsakarin
pkgname=vapoursynth-plugin-${_plug}-av1an-git
pkgver=0.96f.3.g4b9a37a
pkgrel=1
pkgdesc="Plugin for Vapoursynth: ${_plug} but Av1an-compatible (GIT version)"
arch=(x86_64)
url=https://github.com/Simulping/vsakarin-av1an
license=(GPL)
depends=(
  vapoursynth
  gcc-libs # libgcc_s.so libstdc++.so
  glibc # ld-linux-x86-64.so libc.so libm.so
  llvm15-libs # libLLVM-15.so
  )
makedepends=(
  git
  meson
  llvm15
)
provides=(
  vapoursynth-plugin-$_plug
  vapoursynth-plugin-${_plug}-git)
conflicts=(vapoursynth-plugin-$_plug)
source=($_plug::git+$url.git)
sha256sums=(SKIP)
options=(debug)

pkgver() {
  cd $_plug
  echo $(git describe --long --tags | tr - . | tr -d v)
}

prepare() {
  cat > native_config <<EOF
[binaries]
llvm-config='/usr/lib/llvm15/bin/llvm-config'
EOF
}

build() {
  arch-meson $_plug build \
    --buildtype=release \
    --native-file=native_config \
    -Dstatic-llvm=false
  meson compile -C build
}

package() {
  DESTDIR="$pkgdir" meson install -C build
  install -Dvm644 $_plug/README.md -t "$pkgdir/usr/share/doc/vapoursynth/plugins/$_plug/"
}