wok view python-bpython/receipt @ rev 23920

Up tazusb (207)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 19 17:19:00 2020 +0000 (2020-08-19)
parents 5d50a02468c7
children 1df6fa555414
line source
1 # SliTaz package receipt.
3 PACKAGE="python-bpython"
4 VERSION="0.19"
5 CATEGORY="development"
6 SHORT_DESC="A fancy interface to the Python interpreter."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://pypi.org/project/$SOURCE/"
11 SOURCE="bpython"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://files.pythonhosted.org/packages/source/b/$SOURCE/$TARBALL"
15 DEPENDS="python python-pygments python-setuptools"
16 BUILD_DEPENDS="$DEPENDS python-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 python setup.py install --root=$DESTDIR
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr
28 mkdir -p $fs/usr/share/applications
30 for file in `find $install | grep 'pyc$'`
31 do
32 rm $file
33 done
34 rm -rf $install/usr/share/applications
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib $fs/usr
38 cp -a $stuff/* $fs/usr/share/applications
39 }