# Template file for 'mkchromecast'
pkgname=mkchromecast
version=0.3.8.1
revision=8
pycompile_dirs="/usr/share/mkchromecast/mkchromecast"
depends="python3-Flask python3-netifaces python3-setuptools python3-requests
 python3-mutagen python3-psutil python3-PyQt5 python3-SoCo python3-chromecast
 python3-gobject python3-youtube-dl ffmpeg"
short_desc="Cast Linux Audio/Video to Google cast and Sonos devices"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://mkchromecast.com/"
distfiles="https://github.com/muammar/mkchromecast/archive/${version}.tar.gz"
checksum=c680a398385d95d51c47eb522b95cf98f932b55caf065ab8b5725e78bf0099b2
python_version=3

do_install() {
	vmkdir usr/bin
	ln -s /usr/share/mkchromecast/mkchromecast.py "$DESTDIR"/usr/bin/mkchromecast
	vinstall mkchromecast.py 755 usr/share/mkchromecast

	vman man/mkchromecast.1

	cp -a --parents images/google* mkchromecast "$DESTDIR"/usr/share/mkchromecast

	vinstall mkchromecast.desktop 644 usr/share/applications
	vinstall images/mkchromecast.xpm 644 usr/share/pixmaps

	vlicense LICENSE
}
