From bc116fa6014fc0d0dc3e283880fbe8c89e677a7c Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Fri, 28 Sep 2018 21:18:09 +0200 Subject: [PATCH] New package: python-construct-2.9.45 --- srcpkgs/python-construct/template | 31 +++++++++++++++++++++++++++++++ srcpkgs/python3-construct | 1 + 2 files changed, 32 insertions(+) create mode 100644 srcpkgs/python-construct/template create mode 120000 srcpkgs/python3-construct diff --git a/srcpkgs/python-construct/template b/srcpkgs/python-construct/template new file mode 100644 index 00000000000..f13f3d66ca6 --- /dev/null +++ b/srcpkgs/python-construct/template @@ -0,0 +1,31 @@ +# Template file for 'python-construct' +pkgname=python-construct +version=2.9.45 +revision=1 +noarch=yes +wrksrc="construct-${version}" +build_style=python-module +pycompile_module="construct" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-enum34 python-numpy" +short_desc="A powerful python2 declarative symmetric parser/builder for binary data" +maintainer="Rasmus Thomsen " +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() { + noarch=yes + depends="python3-numpy" + pycompile_module="construct" + short_desc="${short_desc/python2/python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-construct b/srcpkgs/python3-construct new file mode 120000 index 00000000000..1126a969071 --- /dev/null +++ b/srcpkgs/python3-construct @@ -0,0 +1 @@ +python-construct \ No newline at end of file