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

_plug=havsfunc
pkgname=vapoursynth-plugin-${_plug}
pkgver=r33
pkgrel=3
pkgdesc="Plugin for Vapoursynth: ${_plug}"
arch=('any')
url='https://github.com/HomeOfVapourSynthEvolution/havsfunc'
license=('GPL')
depends=('vapoursynth'
         'vapoursynth-plugin-vsutil'
         'vapoursynth-plugin-mvsfunc')
optdepends=('vapoursynth-plugin-adjust'
            'vapoursynth-plugin-addgrain'
            'vapoursynth-plugin-awarpsharp2'
            'vapoursynth-plugin-bilateral'
            'vapoursynth-plugin-ctmf'
            'vapoursynth-plugin-dctfilter'
            'vapoursynth-plugin-dfttest'
            'vapoursynth-plugin-eedi2'
            'vapoursynth-plugin-deblock'
            'vapoursynth-plugin-eedi3m'
            'vapoursynth-plugin-fft3dfilter'
            'vapoursynth-plugin-f3kdb'
            'vapoursynth-plugin-fluxsmooth'
            'vapoursynth-plugin-fmtconv'
            'vapoursynth-plugin-knlmeanscl'
            'vapoursynth-plugin-mvtools'
            'vapoursynth-plugin-nnedi3_resample'
            'vapoursynth-plugin-nnedi3'
            'vapoursynth-plugin-nnedi3cl'
            'vapoursynth-plugin-sangnom'
            'vapoursynth-plugin-svpflow1'
            'vapoursynth-plugin-svpflow2-bin'
            'vapoursynth-plugin-ttempsmooth'
            'vapoursynth-plugin-znedi3')

provides=("vapoursynth-plugin-${_plug}")
conflicts=("vapoursynth-plugin-${_plug}-git")
source=("${_plug}-${pkgver}.tar.gz::https://github.com/HomeOfVapourSynthEvolution/havsfunc/archive/${pkgver}.tar.gz")
sha256sums=('87446e937145c19f94b6ef51776099918140d439a142c460454e7e17cff0778e')

_site_packages="$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")"

package() {
  install -Dm644 "${_plug}-${pkgver}/${_plug}.py" "${pkgdir}${_site_packages}/${_plug}.py"
  python -m compileall -q -f -d "${_site_packages}" "${pkgdir}${_site_packages}/${_plug}.py"
  python -OO -m compileall -q -f -d "${_site_packages}" "${pkgdir}${_site_packages}/${_plug}.py"
}