diff --git a/srcpkgs/python-discogs_client/template b/srcpkgs/python-discogs_client/template new file mode 100644 index 0000000000..ed7a1348b1 --- /dev/null +++ b/srcpkgs/python-discogs_client/template @@ -0,0 +1,31 @@ +# Template file for 'python-discogs_client' +pkgname=python-discogs_client +version=2.2.0 +revision=1 +noarch=yes +wrksrc="${pkgname#*-}-${version}" +build_style="python-module" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-requests python-oauthlib" +pycompile_module="discogs_client" +short_desc="Official Discogs API client for Python2" +maintainer="Georg Schabel " +homepage="https://github.com/discogs/discogs_client" +license="BSD-2" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=b31e3fd8f17f46b9c7221182ed6be96774a334ac8be4e434ee99943d27170945 + +post_install() { + vlicense LICENSE +} + +python3-discogs_client_package() { + noarch=yes + depends="python3-requests python3-oauthlib" + pycompile_module="discogs_client" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3.4-discogs_client b/srcpkgs/python3.4-discogs_client new file mode 120000 index 0000000000..9eafeefc62 --- /dev/null +++ b/srcpkgs/python3.4-discogs_client @@ -0,0 +1 @@ +python-discogs_client \ No newline at end of file