From ff55bae2b2cd2d1bb195430a2ef490de4f89bf9e Mon Sep 17 00:00:00 2001 From: Karl Nilsson Date: Fri, 15 Sep 2017 14:24:46 -0400 Subject: [PATCH] New package: python-utils-2.2.0 --- srcpkgs/python-utils/template | 30 ++++++++++++++++++++++++++++++ srcpkgs/python3-utils | 1 + 2 files changed, 31 insertions(+) create mode 100644 srcpkgs/python-utils/template create mode 120000 srcpkgs/python3-utils diff --git a/srcpkgs/python-utils/template b/srcpkgs/python-utils/template new file mode 100644 index 00000000000..f73baad0322 --- /dev/null +++ b/srcpkgs/python-utils/template @@ -0,0 +1,30 @@ +# Template file for 'python-utils' +pkgname=python-utils +version=2.2.0 +revision=1 +build_style=python-module +wrksrc="python-utils-${version}" +hostmakedepends="python-setuptools python3-setuptools" +makedepends="python-devel python3-devel" +depends="python-six" +pycompile_module="python_utils" +short_desc="Convenient utilities not included with the standard Python install " +maintainer="Karl Nilsson " +license="3-Clause-BSD" +homepage="https://github.com/WoLpH/python-utils" +distfiles="https://github.com/WoLpH/python-utils/archive/v${version}.tar.gz" +checksum=5ee886412312adf91756be6b69090fb21fe55c0305910d5459c954430cdd1acc + +pkg_install() { + vlicense LICENSE +} + +python3-utils_package() { + depends="python3-six" + pycompile_module="python_utils" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-utils b/srcpkgs/python3-utils new file mode 120000 index 00000000000..d7331f7a68d --- /dev/null +++ b/srcpkgs/python3-utils @@ -0,0 +1 @@ +python-utils/ \ No newline at end of file