From 9e330ffa8b5238dafee9336f86a177306c4d3b5f Mon Sep 17 00:00:00 2001 From: maxice8 Date: Thu, 9 Nov 2017 11:50:14 -0200 Subject: [PATCH] New package: python-appdirs-1.4.3. --- srcpkgs/python-appdirs/template | 33 +++++++++++++++++++++++++++++++++ srcpkgs/python3-appdirs | 1 + 2 files changed, 34 insertions(+) create mode 100644 srcpkgs/python-appdirs/template create mode 120000 srcpkgs/python3-appdirs diff --git a/srcpkgs/python-appdirs/template b/srcpkgs/python-appdirs/template new file mode 100644 index 00000000000..cf406e63496 --- /dev/null +++ b/srcpkgs/python-appdirs/template @@ -0,0 +1,33 @@ +# Template file for 'python-appdirs' +pkgname=python-appdirs +version=1.4.3 +revision=1 +wrksrc="${pkgname/python-//}-${version}" +build_style=python-module +pycompile_module="appdirs" +hostmakedepends="python-setuptools python3-setuptools" +short_desc="A small Python2 module for determining appropiate appdirs" +maintainer="maxice8 " +license="MIT" +homepage="http://github.com/ActiveState/appdirs" +distfiles="${PYPI_SITE}/a/appdirs/appdirs-${version}.tar.gz" +checksum=9e5896d1372858f8dd3344faf4e5014d21849c756c8d5701f78f8a103b372d92 +noarch=yes + +do_check() { + python setup.py test +} + +post_install() { + vlicense LICENSE.txt +} + +python3-appdirs_package() { + noarch=yes + pycompile_module="appdirs" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE.txt + } +} diff --git a/srcpkgs/python3-appdirs b/srcpkgs/python3-appdirs new file mode 120000 index 00000000000..a759b105cdf --- /dev/null +++ b/srcpkgs/python3-appdirs @@ -0,0 +1 @@ +python-appdirs \ No newline at end of file