# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>

pkgname=vapoursynth-plugin-deblock
pkgver=8
pkgrel=1
pkgdesc='Deblock plugin for VapourSynth'
arch=(x86_64)
url=https://github.com/HomeOfVapourSynthEvolution/VapourSynth-Deblock
license=(GPL2)
depends=(
  gcc-libs
  glibc
  vapoursynth
)
makedepends=(
  git
  meson-python
  python-build
  python-installer
)
_tag=2e720bcc113c98ce9f4cf7261d5d74d626d6f662
source=(git+https://github.com/HomeOfVapourSynthEvolution/VapourSynth-Deblock.git#tag=${_tag})
b2sums=('b28256ef28130ad428cccf760180724b80bc33b9db44691fd1babebc55c5212c0a6c3310283116f3f6613e01b6eafbdb8201fcdfd7d142224c1b4d0d1219b8f4')

pkgver() {
  cd VapourSynth-Deblock
  git describe --tags | sed 's/^r//'
}

build() {
  cd VapourSynth-Deblock
  python -m build --wheel --no-isolation
}

package(){
  python -m installer --destdir="$pkgdir" VapourSynth-Deblock/dist/*.whl
}

# vim: ts=2 sw=2 et:
