diff --git a/srcpkgs/python-discogs_client/template b/srcpkgs/python-discogs_client/template index c22fc31c34..25301af1f8 100644 --- a/srcpkgs/python-discogs_client/template +++ b/srcpkgs/python-discogs_client/template @@ -1,9 +1,9 @@ # Template file for 'python-discogs_client' pkgname=python-discogs_client -version=2.2.0 -revision=3 +version=2.2.1 +revision=1 noarch=yes -wrksrc="${pkgname#*-}-${version}" +wrksrc="discogs-client-${version}" build_style=python-module hostmakedepends="python-setuptools python3-setuptools" depends="python-requests python-six python-oauthlib" @@ -11,12 +11,15 @@ pycompile_module="discogs_client" short_desc="Official Discogs API client for Python2" maintainer="Georg Schabel " homepage="https://github.com/discogs/discogs_client" -license="2-clause-BSD" -distfiles="${homepage}/archive/v${version}.tar.gz" -checksum=b31e3fd8f17f46b9c7221182ed6be96774a334ac8be4e434ee99943d27170945 +license="BSD-2-Clause" +distfiles="${PYPI_SITE}/d/discogs-client/discogs-client-${version}.tar.gz + https://raw.githubusercontent.com/discogs/discogs_client/master/LICENSE" +checksum="9e32b5e45cff41af8025891c71aa3025b3e1895de59b37c11fd203a8af687414 + 1af62aeddccb57134218ddbdc67d0473524ca736703d7cce01db59b2e07da542" +skip_extraction="LICENSE" post_install() { - vlicense LICENSE + vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/LICENSE } python3-discogs_client_package() { @@ -26,6 +29,6 @@ python3-discogs_client_package() { short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/lib/python3* - vlicense LICENSE + vlicense ${XBPS_SRCDISTDIR}/${sourcepkg}-${version}/LICENSE } }