wok view python-bpython/receipt @ rev 24333

updated autoconf (2.69 -> 2.71)
author Hans-G?nter Theisgen
date Fri Jan 28 08:53:07 2022 +0100 (2022-01-28)
parents 34af7e8f2ad6
children 076f424196b2
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 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 python setup.py install --root=$DESTDIR
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 mkdir -p $fs/usr/share/applications
35 for file in `find $install | grep 'pyc$'`
36 do
37 rm $file
38 done
39 rm -rf $install/usr/share/applications
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib $fs/usr
43 cp -a $stuff/* $fs/usr/share/applications
44 }