wok-6.x view python-werkzeug/receipt @ rev 18086
Rebuild Python packages to remove "*.pyc" files from packages files.lists (part last)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 23 16:17:14 2015 +0300 (2015-05-23) |
parents | 7971addf736e |
children | 9820f9ae38d5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-werkzeug"
4 GITHASH="8c085bba3d0abe1139fd84bdb542efdb579b0205"
5 VERSION=${GITHASH:0:7}
6 CATEGORY="development"
7 SHORT_DESC="WSGI utility modules"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="BSD"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://werkzeug.pocoo.org/"
12 GIT_URL="https://github.com/mitsuhiko/werkzeug/tarball/$GITHASH"
14 DEPENDS="python"
15 BUILD_DEPENDS="wget python python-dev setuptools"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 [ -s $SOURCES_REPOSITORY/$TARBALL ] ||
21 wget --no-check-certificate -O $SOURCES_REPOSITORY/$TARBALL $GIT_URL
22 if [ ! -s $src ]; then
23 mkdir -p $(dirname $src)
24 tar xzf $SOURCES_REPOSITORY/$TARBALL &&
25 mv mitsuhiko-werkzeug-$VERSION $src
26 fi
27 cd $src
28 python setup.py install --root=$DESTDIR
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cp -a $install/usr $fs
35 }