# Template file for 'python-olefile'
pkgname=python-olefile
version=0.46
revision=2
archs=noarch
wrksrc="olefile-${version}"
build_style=python-module
pycompile_module="olefile"
hostmakedepends="unzip python-setuptools python3-setuptools"
depends="python"
short_desc="Python2 package to parse, read and write Microsoft OLE2 files"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://olefile.readthedocs.io/"
license="BSD-2-Clause"
distfiles="${PYPI_SITE}/o/olefile/olefile-${version}.zip"
checksum=133b031eaf8fd2c9399b78b8bc5b8fcbe4c31e85295749bb17a87cba8f3c3964

post_install() {
	vlicense LICENSE.txt
}

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

	}
}
