diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -6,15 +6,18 @@ pkgver=r4 pkgrel=1 pkgdesc="Plugin for Vapoursynth: ${_plug} (GIT version)" arch=('any') -url="https://gist.github.com/4re" +url='https://gist.github.com/4re' license=('GPL') -depends=('vapoursynth' 'vapoursynth-plugin-havsfunc') +depends=('vapoursynth' + 'vapoursynth-plugin-havsfunc' + ) makedepends=('git') provides=("vapoursynth-plugin-${_plug}") conflicts=("vapoursynth-plugin-${_plug}") source=("${_plug}::git+https://gist.github.com/8fee7aa32ba9ac566ed0.git") -sha1sums=('SKIP') -_sites_packages="$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")" +sha256sums=('SKIP') + +_site_packages="$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")" pkgver() { cd "${_plug}" @@ -22,5 +25,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" } |