wok-next annotate python-simplejson/receipt @ rev 7899

fix-bdep: kbd
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Jan 09 14:25:20 2011 +0100 (2011-01-09)
parents 43ee1ff86e05
children 53f06e703bed
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"
claudinei@3394 9 TARBALL="$SOURCE-$VERSION.tar.gz"
claudinei@3394 10 WEB_SITE="http://pypi.python.org/pypi/simplejson"
claudinei@3394 11 WGET_URL="http://pypi.python.org/packages/source/s/$SOURCE/$TARBALL"
claudinei@3394 12 DEPENDS="python"
claudinei@3394 13 BUILD_DEPENDS="python-dev"
claudinei@3394 14
claudinei@3394 15 # Rules to configure and make the package.
claudinei@3394 16 compile_rules()
claudinei@3394 17 {
claudinei@3394 18 cd $src
claudinei@3394 19 python setup.py build
claudinei@3394 20 python setup.py install --root=$PWD/_pkg
claudinei@3394 21 }
claudinei@3394 22
claudinei@3394 23 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3394 24 genpkg_rules()
claudinei@3394 25 {
claudinei@3394 26 mkdir -p $fs/usr
claudinei@3394 27 cp -a $_pkg/usr/lib $fs/usr
claudinei@3394 28 }
claudinei@3394 29
pankso@3401 30 # Remove old package.
pankso@3401 31 post_install()
pankso@3401 32 {
pankso@3401 33 rm -rf $1/var/lib/tazpkg/installed/simplejson
pankso@3401 34 }