# Template file for 'python-pafy'
pkgname=python-pafy
version=0.3.82
revision=1
wrksrc="pafy-${version}"
noarch=yes
python_versions="2.7 3.4"
pycompile_module="pafy"
build_style=python-module
hostmakedepends="python-setuptools python3.4-setuptools"
short_desc="Python2 library to download YouTube content and retrieve metadata"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-3"
homepage="https://github.com/np1/pafy"
distfiles="https://github.com/np1/pafy/archive/v${version}.tar.gz"
checksum=6c82dcfa4d1c3280fcc4f0f4d9950a8471b135c9509ba58d663b8358b12270e3

python3.4-pafy_package() {
	short_desc="${short_desc/2/3/}"
	noarch=yes
	pycompile_version="3.4"
	pycompile_module="pafy"
	pkg_install() {
		vmove usr/lib/python3.4
	}
}
