# Template file for 'python-blinker'
pkgname=python-blinker
version=1.3
revision=1
noarch=yes
wrksrc="blinker-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="python-devel python3.4-devel"
depends="python>=2.7"
pycompile_module="blinker"
short_desc="Fast, simple object-to-object and broadcast signaling for Python2"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://pythonhosted.org/blinker/"
license="MIT"
distfiles="https://pypi.python.org/packages/source/b/blinker/blinker-${version}.tar.gz"
checksum=6811010809262261e41ab7b92f3f6d23f35cf816fbec2bc05077992eebec6e2f

post_install() {
	vinstall LICENSE 644 usr/share/licenses/${pkgname}
}

python3.4-blinker_package() {
	noarch=yes
	depends="python3.4"
	pycompile_version="3.4"
	pycompile_module="blinker"
	short_desc="${short_desc/Python2/Python3.4}"
	pkg_install() {
		vmove usr/lib/python3.4
		vinstall ${wrksrc}/LICENSE 644 usr/share/licenses/${pkgname}
	}
}
