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

_plug=f3kdb
pkgname=vapoursynth-plugin-${_plug}-git
pkgver=2.0pre.r423.54ff2b0
pkgrel=1
pkgdesc="Plugin for Vapoursynth: ${_plug} (GIT version)"
arch=('x86_64')
url='http://forum.doom9.org/showthread.php?t=161411'
license=('GPL3')
depends=('vapoursynth')
makedepends=(
  'git'
  'waf'
  'python-sphinx'
)
provides=("vapoursynth-plugin-${_plug}")
conflicts=(
  "vapoursynth-plugin-${_plug}"
  'vapoursynth-plugin-flash3kyuu_deband'
)
source=("${_plug}::git+https://github.com/SAPikachu/flash3kyuu_deband.git")
sha256sums=('SKIP')
options=('debug')

pkgver() {
  cd "${_plug}"
  _ver="$(cat wscript | grep 'VERSION = ' | cut -d '"' -f2)"
  echo "$(echo ${_ver}).r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

prepare() {
  rm -fr "${_plug}/src/vapoursynth/"{VapourSynth,VSHelper}.h

  mkdir -p "${_plug}/docs/source/_static"
}

build() {
  cd "${_plug}"
  CXXFLAGS+=" $(pkg-config --cflags vapoursynth)" \
  waf \
    --mode=release \
    --prefix=/usr \
    --libdir=/usr/lib/vapoursynth \
    configure build

  sphinx-build docs/source html
}

package(){
  cd "${_plug}"
  waf install --no-ldconfig --destdir="${pkgdir}"
  for i in $(find html -type f); do install -Dm644 ${i} "${pkgdir}/usr/share/doc/vapoursynth/plugins/${_plug}/${i}"; done
}