# Template file for 'vidcutter'
pkgname=vidcutter
version=6.0.5.3
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython"
makedepends="mpv-devel python3-devel"
depends="desktop-file-utils hicolor-icon-theme ffmpeg mpv mediainfo
 python3-PyOpenGL python3-PyQt5 python3-setuptools"
short_desc="Video cutter and joiner based on FFmpeg"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/ozmartian/vidcutter"
distfiles="https://github.com/ozmartian/vidcutter/archive/refs/tags/${version}.tar.gz"
checksum=d613eb5e20b4606b416ae21968717027b527939d1aaf591f1044c9efe9552b87

post_patch() {
	# Version is wrong in github tags
	vsed -i -e "s/^__version__ = .*/__version__ = '${version}'/" vidcutter/__init__.py
}
