wok annotate python-html5lib/receipt @ rev 5277
lzma: add --version support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Apr 16 10:18:15 2010 +0200 (2010-04-16) |
parents | d348790a08f3 |
children | 28e39e49b41a |
rev | line source |
---|---|
claudinei@3391 | 1 # SliTaz package receipt. |
claudinei@3391 | 2 |
claudinei@3391 | 3 PACKAGE="python-html5lib" |
claudinei@3391 | 4 SOURCE="html5lib" |
claudinei@3391 | 5 VERSION="0.11.1" |
claudinei@3391 | 6 CATEGORY="development" |
claudinei@3391 | 7 SHORT_DESC="A ruby/python based html parser/tokenizer." |
claudinei@3391 | 8 MAINTAINER="claudinei@slitaz.org" |
claudinei@3391 | 9 TARBALL="$SOURCE-$VERSION.zip" |
claudinei@3391 | 10 WEB_SITE="http://code.google.com/p/html5lib" |
claudinei@3391 | 11 WGET_URL="http://$SOURCE.googlecode.com/files/$TARBALL" |
claudinei@3391 | 12 DEPENDS="python" |
claudinei@3391 | 13 BUILD_DEPENDS="python python-dev setuptools" |
claudinei@3391 | 14 |
claudinei@3391 | 15 # Rules to configure and make the package. |
claudinei@3391 | 16 compile_rules() |
claudinei@3391 | 17 { |
claudinei@3391 | 18 cd $src |
claudinei@3391 | 19 python setup.py install --root=$PWD/_pkg |
claudinei@3391 | 20 } |
claudinei@3391 | 21 |
claudinei@3391 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3391 | 23 genpkg_rules() |
claudinei@3391 | 24 { |
claudinei@3391 | 25 mkdir -p $fs/usr |
claudinei@3391 | 26 cp -a $_pkg/usr $fs |
claudinei@3391 | 27 } |
claudinei@3391 | 28 |
claudinei@3404 | 29 # Remove old package. |
claudinei@3404 | 30 post_install() |
claudinei@3404 | 31 { |
claudinei@3404 | 32 rm -rf $1/var/lib/tazpkg/installed/html5lib |
claudinei@3404 | 33 } |