wok-6.x annotate python-bpython/receipt @ rev 22774

Add serf
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 25 17:25:42 2020 +0100 (2020-01-25)
parents 6135577f4d08
children 34af7e8f2ad6
rev   line source
claudinei@3421 1 # SliTaz package receipt.
claudinei@3421 2
claudinei@3421 3 PACKAGE="python-bpython"
claudinei@3421 4 SOURCE="bpython"
claudinei@14876 5 VERSION="0.9.7.1"
claudinei@3421 6 CATEGORY="development"
claudinei@3421 7 SHORT_DESC="A fancy interface to the Python interpreter."
claudinei@3421 8 MAINTAINER="claudinei@slitaz.org"
pascal@15378 9 LICENSE="MIT"
claudinei@3421 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@20679 11 WEB_SITE="https://pypi.org/project/$SOURCE/"
claudinei@3421 12 WGET_URL="$WEB_SITE/releases/$TARBALL"
pascal@15378 13
pascal@21581 14 DEPENDS="python python-pygments python-setuptools"
claudinei@3421 15 BUILD_DEPENDS="$DEPENDS python-dev"
claudinei@3421 16
claudinei@3421 17 # Rules to configure and make the package.
claudinei@3421 18 compile_rules()
claudinei@3421 19 {
claudinei@3421 20 cd $src
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 {
claudinei@14876 27 for file in `find $install | grep 'pyc$'`; do
claudinei@3788 28 rm $file
claudinei@3788 29 done
claudinei@14876 30 rm -rf $install/usr/share/applications
claudinei@3421 31 mkdir -p $fs/usr $fs/usr/share/applications
claudinei@14876 32 cp -a $install/usr/bin $fs/usr
claudinei@14876 33 cp -a $install/usr/lib $fs/usr
slaxemulator@9701 34 cp -a $stuff/* $fs/usr/share/applications
claudinei@3421 35 }
claudinei@3421 36