diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -8,16 +8,17 @@ pkgdesc="Plugin for Vapoursynth: ${_plug} (GIT version)" arch=('any') url='https://gist.github.com/4re' license=('GPL') -depends=('vapoursynth-plugin-genericfilters-git' +depends=('vapoursynth' + 'vapoursynth-plugin-genericfilters-git' 'vapoursynth-plugin-mvtools' ) makedepends=('git') provides=("vapoursynth-plugin-${_plug}") conflicts=("vapoursynth-plugin-${_plug}") source=("${_plug}::git+https://gist.github.com/b5399b1801072458fc80.git") -sha1sums=('SKIP') +sha256sums=('SKIP') -_sites_packages="$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")" +_site_packages="$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")" pkgver() { cd "${_plug}" @@ -25,5 +26,7 @@ pkgver() { } package() { - install -Dm644 "${_plug}/${_plug}.py" "${pkgdir}${_sites_packages}/${_plug}.py" + install -Dm644 "${_plug}/${_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" } |