wok annotate python-bpython/receipt @ rev 24034
Openssh (8.5p1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 08 09:21:26 2021 +0000 (2021-04-08) |
parents | 5d50a02468c7 |
children | 1df6fa555414 |
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" |
Hans-G?nter@23467 | 9 WEB_SITE="https://pypi.org/project/$SOURCE/" |
Hans-G?nter@23467 | 10 |
Hans-G?nter@23467 | 11 SOURCE="bpython" |
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 |
claudinei@3421 | 18 # Rules to configure and make the package. |
claudinei@3421 | 19 compile_rules() |
claudinei@3421 | 20 { |
claudinei@14876 | 21 python setup.py install --root=$DESTDIR |
claudinei@3421 | 22 } |
claudinei@3421 | 23 |
claudinei@3421 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3421 | 25 genpkg_rules() |
claudinei@3421 | 26 { |
Hans-G?nter@23467 | 27 mkdir -p $fs/usr |
Hans-G?nter@23467 | 28 mkdir -p $fs/usr/share/applications |
Hans-G?nter@23467 | 29 |
Hans-G?nter@23467 | 30 for file in `find $install | grep 'pyc$'` |
Hans-G?nter@23467 | 31 do |
claudinei@3788 | 32 rm $file |
Hans-G?nter@23467 | 33 done |
claudinei@14876 | 34 rm -rf $install/usr/share/applications |
Hans-G?nter@23467 | 35 |
Hans-G?nter@23467 | 36 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23467 | 37 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@23467 | 38 cp -a $stuff/* $fs/usr/share/applications |
claudinei@3421 | 39 } |