# Template file for 'ffmpegthumbnailer'
pkgname=ffmpegthumbnailer
version=2.2.3
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="libpng-devel libjpeg-turbo-devel ffmpeg6-devel"
depends="ffmpeg"
short_desc="Lightweight video thumbnailer"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/dirkvdb"
distfiles="${homepage}/${pkgname}/archive/refs/tags/${version}.tar.gz"
checksum=8c9b9057c6cc8bce9d11701af224c8139c940f734c439a595525e073b09d19b8

post_install() {
	vinstall dist/ffmpegthumbnailer.thumbnailer 644 usr/share/thumbnailers
}

ffmpegthumbnailer-devel_package() {
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove "usr/lib/*.so"
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}
