wok-current annotate python-simplejson/receipt @ rev 15480
memtest: default setup size = 4
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 10 11:19:32 2013 +0000 (2013-11-10) |
parents | 53f06e703bed |
children | 048c66ed11ec |
rev | line source |
---|---|
claudinei@3394 | 1 # SliTaz package receipt. |
claudinei@3394 | 2 |
claudinei@3394 | 3 PACKAGE="python-simplejson" |
claudinei@3394 | 4 SOURCE="simplejson" |
slaxemulator@7548 | 5 VERSION="2.1.1" |
claudinei@3394 | 6 CATEGORY="development" |
claudinei@3394 | 7 SHORT_DESC="Simple, fast, extensible JSON encoder/decoder for python." |
claudinei@3394 | 8 MAINTAINER="claudinei@slitaz.org" |
pascal@15376 | 9 LICENSE="MIT" |
claudinei@3394 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
claudinei@3394 | 11 WEB_SITE="http://pypi.python.org/pypi/simplejson" |
claudinei@3394 | 12 WGET_URL="http://pypi.python.org/packages/source/s/$SOURCE/$TARBALL" |
pascal@15376 | 13 |
claudinei@3394 | 14 DEPENDS="python" |
slaxemulator@8362 | 15 BUILD_DEPENDS="python-dev setuptools" |
claudinei@3394 | 16 |
claudinei@3394 | 17 # Rules to configure and make the package. |
claudinei@3394 | 18 compile_rules() |
claudinei@3394 | 19 { |
claudinei@3394 | 20 cd $src |
claudinei@3394 | 21 python setup.py build |
pascal@15376 | 22 python setup.py install --root=$DESTDIR |
claudinei@3394 | 23 } |
claudinei@3394 | 24 |
claudinei@3394 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3394 | 26 genpkg_rules() |
claudinei@3394 | 27 { |
claudinei@3394 | 28 mkdir -p $fs/usr |
pascal@15376 | 29 cp -a $install/usr/lib $fs/usr |
claudinei@3394 | 30 } |
claudinei@3394 | 31 |
pankso@3401 | 32 # Remove old package. |
pankso@3401 | 33 post_install() |
pankso@3401 | 34 { |
pankso@3401 | 35 rm -rf $1/var/lib/tazpkg/installed/simplejson |
pankso@3401 | 36 } |