diff --git a/srcpkgs/pycp/template b/srcpkgs/pycp/template index db0dc72284b..353f60d061b 100644 --- a/srcpkgs/pycp/template +++ b/srcpkgs/pycp/template @@ -1,7 +1,7 @@ # Template file for 'pycp' pkgname=pycp version=8.0.6 -revision=1 +revision=2 noarch=yes build_style=python3-module pycompile_module="pycp" @@ -11,8 +11,18 @@ short_desc="Shows progressbar of cp and mv" maintainer="fs0ciety " license="MIT" homepage="https://github.com/dmerejkowsky/pycp" -distfiles="https://github.com/dmerejkowsky/${pkgname}/archive/v${version}.tar.gz" -checksum=0a78d6e9d2c1027de0908fcf2704f5d2f5d48e138b99969d9640c88f92cde21c +distfiles="${PYPI_SITE}/p/pycp/pycp-${version}.tar.gz" +checksum=c2960604585ef392cdc1185a094409d5132b9630b0c0bf4d56bac7f00fb40c65 + +pre_build() { + vsed -e 's|import ui|import cli_ui|g' \ + -i pycp/transfer.py -i pycp/progress.py + + vsed -e 's|ui\.|ui_cli.|g' \ + -i pycp/transfer.py -i pycp/progress.py + + vsed -e 's|python-cli-ui|cli-ui|g' -i setup.py +} post_install() { vlicense COPYING.txt LICENSE