# Template file for 'python-construct'
pkgname=python-construct
version=2.9.45
revision=3
archs=noarch
wrksrc="construct-${version}"
build_style=python-module
pycompile_module="construct"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Powerful declarative symmetric parser/builder for binary data (Python2)"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="https://construct.readthedocs.org/"
distfiles="${PYPI_SITE}/c/construct/construct-${version}.tar.gz"
checksum=2271a0efd0798679dea825ff47e22a4c550456a5db0ba8baa82f7eae0af0118c

post_install() {
	vlicense LICENSE
}

python3-construct_package() {
	archs=noarch
	depends="python3"
	pycompile_module="construct"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE
	}
}
