void-packages/srcpkgs/python-olefile/template
2017-01-16 19:49:43 +01:00

32 lines
882 B
Bash

# Template file for 'python-olefile'
pkgname=python-olefile
version=0.44
revision=1
noarch=yes
wrksrc="olefile-${version}"
build_style=python-module
pycompile_module="olefile OleFileIO_PL.py"
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=61f2ca0cd0aa77279eb943c07f607438edf374096b66332fae1ee64a6f0f73ad
post_install() {
vlicense olefile/LICENSE.txt LICENSE
}
python3-olefile_package() {
noarch=yes
depends="python3"
pycompile_module="olefile OleFileIO_PL.py"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense olefile/LICENSE.txt LICENSE
}
}