# Template file for 'python-Yapsy'
pkgname=python-Yapsy
version=1.12.0
revision=1
noarch=yes
wrksrc="Yapsy-${version}"
build_style=python-module
pycompile_module="yapsy"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Yet another plugin system"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
homepage="http://yapsy.sourceforge.net/"
license="BSD-2-Clause"
distfiles="${PYPI_SITE}/Y/Yapsy/Yapsy-${version}.tar.gz"
checksum=f08cb229a96f14cc0b1d4b68cb7c111d1020ab8c3989b426d3aa39b82d6a3e3c

post_install() {
	vlicense LICENSE.txt
}

python3-Yapsy_package() {
	noarch=yes
	depends="python3"
	pycompile_module="yapsy"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE.txt
	}
}
