wok-6.x annotate python-restclient/receipt @ rev 17696
Add minetest
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 24 11:22:31 2015 +0100 (2015-02-24) |
parents | 44eacb6d3864 |
children | 7390f8de9846 |
rev | line source |
---|---|
claudinei@3812 | 1 # SliTaz package receipt. |
claudinei@3812 | 2 |
claudinei@3812 | 3 PACKAGE="python-restclient" |
claudinei@3812 | 4 SOURCE="py-restclient" |
claudinei@3812 | 5 VERSION="1.3.2" |
claudinei@3812 | 6 CATEGORY="development" |
claudinei@3812 | 7 SHORT_DESC="A simple REST client for python" |
claudinei@3812 | 8 MAINTAINER="claudinei@slitaz.org" |
pascal@15376 | 9 LICENSE="MIT" |
pascal@14356 | 10 TARBALL="$PACKAGE-$VERSION.tgz" |
claudinei@3812 | 11 WEB_SITE="http://bitbucket.org/benoitc/$SOURCE" |
pascal@14355 | 12 WGET_URL="$WEB_SITE/get/$VERSION.gz" |
claudinei@3812 | 13 |
pascal@15376 | 14 DEPENDS="python python-httplib2" |
pascal@15376 | 15 BUILD_DEPENDS="python python-dev setuptools" |
pascal@15376 | 16 |
claudinei@3812 | 17 # Rules to configure and make the package. |
claudinei@3812 | 18 compile_rules() |
claudinei@3812 | 19 { |
claudinei@3812 | 20 cd $src |
pascal@14355 | 21 python setup.py install --root=$DESTDIR |
claudinei@3812 | 22 } |
claudinei@3812 | 23 |
claudinei@3812 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3812 | 25 genpkg_rules() |
claudinei@3812 | 26 { |
pascal@6594 | 27 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
claudinei@3812 | 28 mkdir -p $fs/usr |
pascal@14355 | 29 rm -f $install/usr/lib/$PYTHON_LIB/site-packages/tests/* |
pascal@14355 | 30 rmdir $install/usr/lib/$PYTHON_LIB/site-packages/tests |
pascal@14355 | 31 cp -a $install/usr $fs |
claudinei@3812 | 32 } |
claudinei@3812 | 33 |