# HG changeset patch # User Hans-G?nter Theisgen # Date 1586074146 -3600 # Node ID 34af7e8f2ad6bbd30c2afedb77230cdff34e03e5 # Parent 172ca2047cd7080eba80f77b1afc40c7a288908b updated python-bpython (0.9.7.1 -> 0.19) diff -r 172ca2047cd7 -r 34af7e8f2ad6 python-bpython/receipt --- a/python-bpython/receipt Sun Apr 05 08:56:53 2020 +0100 +++ b/python-bpython/receipt Sun Apr 05 09:09:06 2020 +0100 @@ -1,15 +1,16 @@ # SliTaz package receipt. PACKAGE="python-bpython" -SOURCE="bpython" -VERSION="0.9.7.1" +VERSION="0.19" CATEGORY="development" SHORT_DESC="A fancy interface to the Python interpreter." MAINTAINER="claudinei@slitaz.org" LICENSE="MIT" +WEB_SITE="https://pypi.org/project/$SOURCE/" + +SOURCE="bpython" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="https://pypi.org/project/$SOURCE/" -WGET_URL="$WEB_SITE/releases/$TARBALL" +WGET_URL="https://files.pythonhosted.org/packages/source/b/$SOURCE/$TARBALL" DEPENDS="python python-pygments python-setuptools" BUILD_DEPENDS="$DEPENDS python-dev" @@ -17,20 +18,22 @@ # Rules to configure and make the package. compile_rules() { - cd $src python setup.py install --root=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - for file in `find $install | grep 'pyc$'`; do + mkdir -p $fs/usr + mkdir -p $fs/usr/share/applications + + for file in `find $install | grep 'pyc$'` + do rm $file - done + done rm -rf $install/usr/share/applications - mkdir -p $fs/usr $fs/usr/share/applications - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/lib $fs/usr - cp -a $stuff/* $fs/usr/share/applications + + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/lib $fs/usr + cp -a $stuff/* $fs/usr/share/applications } -