wok-6.x view python-restclient/receipt @ rev 14355
Update some TARBALL name
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 17 09:19:04 2013 +0200 (2013-04-17) |
parents | be13f25e790b |
children | 44eacb6d3864 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-restclient"
4 SOURCE="py-restclient"
5 VERSION="1.3.2"
6 CATEGORY="development"
7 SHORT_DESC="A simple REST client for python"
8 MAINTAINER="claudinei@slitaz.org"
9 DEPENDS="python python-httplib2"
10 BUILD_DEPENDS="python python-dev setuptools"
11 TARBALL="$PACKAGE-$VERSION.gz"
12 WEB_SITE="http://bitbucket.org/benoitc/$SOURCE"
13 WGET_URL="$WEB_SITE/get/$VERSION.gz"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 python setup.py install --root=$DESTDIR
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
26 mkdir -p $fs/usr
27 rm -f $install/usr/lib/$PYTHON_LIB/site-packages/tests/*
28 rmdir $install/usr/lib/$PYTHON_LIB/site-packages/tests
29 cp -a $install/usr $fs
30 }