wok annotate python-bpython/receipt @ rev 25421
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 10 07:02:08 2022 +0000 (2022-08-10) |
parents | 1df6fa555414 |
children |
rev | line source |
---|---|
claudinei@3421 | 1 # SliTaz package receipt. |
claudinei@3421 | 2 |
claudinei@3421 | 3 PACKAGE="python-bpython" |
Hans-G?nter@23467 | 4 VERSION="0.19" |
claudinei@3421 | 5 CATEGORY="development" |
claudinei@3421 | 6 SHORT_DESC="A fancy interface to the Python interpreter." |
claudinei@3421 | 7 MAINTAINER="claudinei@slitaz.org" |
pascal@15378 | 8 LICENSE="MIT" |
pascal@24383 | 9 SOURCE="bpython" |
Hans-G?nter@23467 | 10 WEB_SITE="https://pypi.org/project/$SOURCE/" |
Hans-G?nter@23467 | 11 |
claudinei@3421 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23467 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/b/$SOURCE/$TARBALL" |
pascal@15378 | 14 |
pascal@21581 | 15 DEPENDS="python python-pygments python-setuptools" |
claudinei@3421 | 16 BUILD_DEPENDS="$DEPENDS python-dev" |
claudinei@3421 | 17 |
pascal@24383 | 18 # What is the latest version available today? |
pascal@24288 | 19 current_version() |
pascal@24288 | 20 { |
pascal@24383 | 21 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||" |
pascal@24288 | 22 } |
pascal@24288 | 23 |
claudinei@3421 | 24 # Rules to configure and make the package. |
claudinei@3421 | 25 compile_rules() |
claudinei@3421 | 26 { |
claudinei@14876 | 27 python setup.py install --root=$DESTDIR |
claudinei@3421 | 28 } |
claudinei@3421 | 29 |
claudinei@3421 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3421 | 31 genpkg_rules() |
claudinei@3421 | 32 { |
Hans-G?nter@23467 | 33 mkdir -p $fs/usr |
Hans-G?nter@23467 | 34 mkdir -p $fs/usr/share/applications |
Hans-G?nter@23467 | 35 |
Hans-G?nter@23467 | 36 for file in `find $install | grep 'pyc$'` |
Hans-G?nter@23467 | 37 do |
claudinei@3788 | 38 rm $file |
Hans-G?nter@23467 | 39 done |
claudinei@14876 | 40 rm -rf $install/usr/share/applications |
Hans-G?nter@23467 | 41 |
Hans-G?nter@23467 | 42 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23467 | 43 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@23467 | 44 cp -a $stuff/* $fs/usr/share/applications |
claudinei@3421 | 45 } |