From 170338c4c7627bc3346a4fa96abb097c171f4281 Mon Sep 17 00:00:00 2001 From: AcidBear Date: Wed, 18 Apr 2018 21:06:48 +0300 Subject: [PATCH] New package: python-toml Closes #13592. Signed-off-by: Enno Boland --- srcpkgs/python-toml/template | 31 +++++++++++++++++++++++++++++++ srcpkgs/python3-toml | 1 + 2 files changed, 32 insertions(+) create mode 100644 srcpkgs/python-toml/template create mode 120000 srcpkgs/python3-toml diff --git a/srcpkgs/python-toml/template b/srcpkgs/python-toml/template new file mode 100644 index 00000000000..8634547fca7 --- /dev/null +++ b/srcpkgs/python-toml/template @@ -0,0 +1,31 @@ +# Template file for 'python-toml' +pkgname=python-toml +version=0.9.3 +revision=1 +noarch=yes +wrksrc=toml-$version +build_style=python-module +pycompile_module="toml" +depends="python" +hostmakedepends="python-setuptools python3-setuptools \ + python-devel python3-devel" +makedepends="python-devel python3-devel" +short_desc="Python2 lib for TOML" +maintainer="AcidBear " +license="MIT" +homepage="https://github.com/uiri/toml" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=633a90ecb1f5665b58f0c94153fcf519313ef53e1de0eac90929cd6b6a014235 + +pkg_install() { + vlicense LICENSE +} + +python3-toml_package() { + depends="python3" + short_desc=${short_desc/Python2/Python3} + pkg_install() { + vmove /usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-toml b/srcpkgs/python3-toml new file mode 120000 index 00000000000..42dc882fb73 --- /dev/null +++ b/srcpkgs/python3-toml @@ -0,0 +1 @@ +python-toml \ No newline at end of file