wok-6.x diff python-bpython/receipt @ rev 24075
Fix some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 08 10:55:01 2021 +0000 (2021-07-08) |
parents | 5d50a02468c7 |
children | 1df6fa555414 |
line diff
1.1 --- a/python-bpython/receipt Sun May 19 19:23:11 2019 +0200 1.2 +++ b/python-bpython/receipt Thu Jul 08 10:55:01 2021 +0000 1.3 @@ -1,15 +1,16 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="python-bpython" 1.7 -SOURCE="bpython" 1.8 -VERSION="0.9.7.1" 1.9 +VERSION="0.19" 1.10 CATEGORY="development" 1.11 SHORT_DESC="A fancy interface to the Python interpreter." 1.12 MAINTAINER="claudinei@slitaz.org" 1.13 LICENSE="MIT" 1.14 +WEB_SITE="https://pypi.org/project/$SOURCE/" 1.15 + 1.16 +SOURCE="bpython" 1.17 TARBALL="$SOURCE-$VERSION.tar.gz" 1.18 -WEB_SITE="https://pypi.org/project/$SOURCE/" 1.19 -WGET_URL="$WEB_SITE/releases/$TARBALL" 1.20 +WGET_URL="https://files.pythonhosted.org/packages/source/b/$SOURCE/$TARBALL" 1.21 1.22 DEPENDS="python python-pygments python-setuptools" 1.23 BUILD_DEPENDS="$DEPENDS python-dev" 1.24 @@ -17,20 +18,22 @@ 1.25 # Rules to configure and make the package. 1.26 compile_rules() 1.27 { 1.28 - cd $src 1.29 python setup.py install --root=$DESTDIR 1.30 } 1.31 1.32 # Rules to gen a SliTaz package suitable for Tazpkg. 1.33 genpkg_rules() 1.34 { 1.35 - for file in `find $install | grep 'pyc$'`; do 1.36 + mkdir -p $fs/usr 1.37 + mkdir -p $fs/usr/share/applications 1.38 + 1.39 + for file in `find $install | grep 'pyc$'` 1.40 + do 1.41 rm $file 1.42 - done 1.43 + done 1.44 rm -rf $install/usr/share/applications 1.45 - mkdir -p $fs/usr $fs/usr/share/applications 1.46 - cp -a $install/usr/bin $fs/usr 1.47 - cp -a $install/usr/lib $fs/usr 1.48 - cp -a $stuff/* $fs/usr/share/applications 1.49 + 1.50 + cp -a $install/usr/bin $fs/usr 1.51 + cp -a $install/usr/lib $fs/usr 1.52 + cp -a $stuff/* $fs/usr/share/applications 1.53 } 1.54 -