From e9b5e77de2d3ac7750c32e5f22c70411b89d7809 Mon Sep 17 00:00:00 2001 From: genericly Date: Wed, 5 Jul 2017 00:11:47 -0400 Subject: [PATCH] New package: python-iptools-0.6.1 Closes: #6960 [via git-merge-pr] --- srcpkgs/python-iptools/template | 32 ++++++++++++++++++++++++++++++++ srcpkgs/python3-iptools | 1 + 2 files changed, 33 insertions(+) create mode 100644 srcpkgs/python-iptools/template create mode 120000 srcpkgs/python3-iptools diff --git a/srcpkgs/python-iptools/template b/srcpkgs/python-iptools/template new file mode 100644 index 00000000000..6230198c81d --- /dev/null +++ b/srcpkgs/python-iptools/template @@ -0,0 +1,32 @@ +# Template file for 'python-iptools' +pkgname=python-iptools +version=0.6.1 +revision=1 +noarch=yes +wrksrc="${pkgname#*-}-${version}" +build_style=python-module +pycompile_module="iptools" +hostmakedepends="python-setuptools python3-setuptools" +depends="python" +short_desc="Python2 utilites for manipulating IPv4 and IPv6 addresses" +maintainer="Andrew Mirghassemi " +license="2-clause-BSD" +homepage="https://github.com/bd808/python-iptools" +distfiles="${PYPI_SITE}/i/iptools/iptools-${version}.tar.gz" +checksum=0f03875a5bed740ba4bf44decb6a78679cca914a1ee8a6cc468114485c4d98e3 + +post_install() { + vlicense LICENSE +} + +python3-iptools_package() { + noarch=yes + depends="python3" + pycompile_module="iptools" + short_desc="${short_desc/Python2/Python3}" + alternatives="iptools:iptools/usr/bin/iptools3" + pkg_install() { + vmove /usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-iptools b/srcpkgs/python3-iptools new file mode 120000 index 00000000000..a400b2e968e --- /dev/null +++ b/srcpkgs/python3-iptools @@ -0,0 +1 @@ +python-iptools/ \ No newline at end of file