From 3fbc83d436d4e19692b61e60a8c0a334a48c886b Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 16 Jan 2017 19:49:43 +0100 Subject: [PATCH] New package: python-olefile-0.44 --- srcpkgs/python-olefile/template | 32 ++++++++++++++++++++++++++++++++ srcpkgs/python3-olefile | 1 + 2 files changed, 33 insertions(+) create mode 100644 srcpkgs/python-olefile/template create mode 120000 srcpkgs/python3-olefile diff --git a/srcpkgs/python-olefile/template b/srcpkgs/python-olefile/template new file mode 100644 index 00000000000..7f70bb3475e --- /dev/null +++ b/srcpkgs/python-olefile/template @@ -0,0 +1,32 @@ +# 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 " +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 + + } +} diff --git a/srcpkgs/python3-olefile b/srcpkgs/python3-olefile new file mode 120000 index 00000000000..ac13b87c464 --- /dev/null +++ b/srcpkgs/python3-olefile @@ -0,0 +1 @@ +python-olefile \ No newline at end of file