From 15a614c1b7201f289bd311d3d3bf715f18e2168f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjam=C3=ADn=20Albi=C3=B1ana?= Date: Fri, 8 Mar 2019 08:42:56 +0100 Subject: [PATCH] New package: python-urbandict-0.5 closes #9512 --- srcpkgs/python-urbandict/template | 31 +++++++++++++++++++++++++++++++ srcpkgs/python3-urbandict | 1 + 2 files changed, 32 insertions(+) create mode 100644 srcpkgs/python-urbandict/template create mode 120000 srcpkgs/python3-urbandict diff --git a/srcpkgs/python-urbandict/template b/srcpkgs/python-urbandict/template new file mode 100644 index 00000000000..ff09e963fa7 --- /dev/null +++ b/srcpkgs/python-urbandict/template @@ -0,0 +1,31 @@ +# Template file for 'python-urbandict' +pkgname=python-urbandict +version=0.5 +revision=1 +archs=noarch +wrksrc="urbandict-${version}" +build_style=python-module +pycompile_module="urbandicli urbandict" +hostmakedepends="python-setuptools python3-setuptools" +depends="python" +short_desc="CLI client and a library for urbandictionary.com" +maintainer="Benjamín Albiñana " +license="Unlicense" +homepage="https://github.com/novel/py-urbandict" +distfiles="${PYPI_SITE}/u/urbandict/urbandict-${version}.tar.gz" +checksum=98405ff13cea555f5c2e49819354d759b9025a4ff45b4a2a99d5efa0eb34d48b +alternatives="urbandicli:urbandicli:/usr/bin/urbandicli2" + +python3-urbandict_package() { + archs=noarch + alternatives="urbandicli:urbandicli:/usr/bin/urbandicli3" + pycompile_module="urbandict" + short_desc="${short_desc/Python2/Python3}" + depends="python3" + pkg_install() { + vmove usr/bin/urbandicli3 + vmove usr/lib/python3* + vlicense COPYING + } +} + diff --git a/srcpkgs/python3-urbandict b/srcpkgs/python3-urbandict new file mode 120000 index 00000000000..2e2497cdc4c --- /dev/null +++ b/srcpkgs/python3-urbandict @@ -0,0 +1 @@ +python-urbandict \ No newline at end of file