# Template file for 'python-olefile'
pkgname=python-olefile
version=0.45.1
revision=1
noarch=yes
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="2-clause-BSD"
distfiles="${PYPI_SITE}/o/olefile/olefile-${version}.zip"
checksum=2b6575f5290de8ab1086f8c5490591f7e0885af682c7c1793bdaf6e64078d385

post_install() {
	vlicense LICENSE.txt LICENSE
}

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

	}
}
