# Template file for 'vapoursynth-editor'
pkgname=vapoursynth-editor
version=19
revision=1
_bitbucket_hash=8019bb5a8099
build_style=qmake
hostmakedepends="qt5-qmake qt5-host-tools"
makedepends="vapoursynth-devel qt5-devel qt5-websockets-devel"
depends="vapoursynth"
short_desc="Cross-platform editor for VapourSynth script"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://bitbucket.org/mystery_keeper/vapoursynth-editor"
distfiles="${homepage}/get/r${version}.tar.gz"
checksum=41e09a6c1411536f7a223a16263145b31de4715189cfe2ebe62b4ad69d6ec342

pre_configure() {
	mv pro/pro.pro .
}

do_install() {
	find ./ -type f -executable | while read _executable
	do
		vbin "${_executable}"
	done
	vlicense LICENSE
	vinstall ${FILESDIR}/vapoursynth-editor.desktop 644 usr/share/applications/
	vinstall resources/vsedit.svg 644 usr/share/pixmaps/
}
