pycp: adapt to python3-cli-ui > 0.7.4
This commit is contained in:
parent
a73acedc61
commit
bcb8f57448
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'pycp'
|
# Template file for 'pycp'
|
||||||
pkgname=pycp
|
pkgname=pycp
|
||||||
version=8.0.6
|
version=8.0.6
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
pycompile_module="pycp"
|
pycompile_module="pycp"
|
||||||
|
@ -11,8 +11,18 @@ short_desc="Shows progressbar of cp and mv"
|
||||||
maintainer="fs0ciety <mrrobot@fsociety.info>"
|
maintainer="fs0ciety <mrrobot@fsociety.info>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/dmerejkowsky/pycp"
|
homepage="https://github.com/dmerejkowsky/pycp"
|
||||||
distfiles="https://github.com/dmerejkowsky/${pkgname}/archive/v${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pycp/pycp-${version}.tar.gz"
|
||||||
checksum=0a78d6e9d2c1027de0908fcf2704f5d2f5d48e138b99969d9640c88f92cde21c
|
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() {
|
post_install() {
|
||||||
vlicense COPYING.txt LICENSE
|
vlicense COPYING.txt LICENSE
|
||||||
|
|
Loading…
Reference in New Issue