# Template file for 'vapoursynth-mvtools'
pkgname=vapoursynth-mvtools
version=19
revision=1
build_style=gnu-configure
hostmakedepends="automake pkg-config libtool yasm"
makedepends="fftw-devel vapoursynth-devel"
short_desc="Set of filters for motion estimation and compensation"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="GPL-2"
homepage="http://avisynth.org.ru/mvtools/mvtools2.html"
distfiles="https://github.com/dubhater/vapoursynth-mvtools/archive/v${version}.tar.gz"
checksum=41848bf526f1807e6894513534d5243bbce5b796d798a3cf47f617229d7b6e9e

case "$XBPS_TARGET_MACHINE" in
	arm*)
		broken="https://build.voidlinux.eu/builders/armv7l-musl_builder/builds/15031"
		;;
esac

pre_configure() {
	./autogen.sh
}

post_install() {
	vdoc readme.rst
	vsconf ${FILESDIR}/example.py
	vmkdir /usr/lib/vapoursynth
	mv ${DESTDIR}/usr/lib/{,vapoursynth/}libmvtools.so
}
