pycp: adapt to python3-cli-ui > 0.7.4

This commit is contained in:
maxice8 2019-01-18 09:08:50 -02:00 committed by maxice8
parent a73acedc61
commit bcb8f57448
1 changed files with 13 additions and 3 deletions

View File

@ -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 <mrrobot@fsociety.info>"
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