wok-6.x view python-simplejson/receipt @ rev 18707

fix some post_install status
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 16 15:49:50 2015 +0100 (2015-12-16)
parents 7390f8de9846
children 9e01bc6321ea
line source
1 # SliTaz package receipt.
3 PACKAGE="python-simplejson"
4 SOURCE="simplejson"
5 VERSION="2.1.1"
6 CATEGORY="development"
7 SHORT_DESC="Simple, fast, extensible JSON encoder/decoder for python."
8 MAINTAINER="claudinei@slitaz.org"
9 LICENSE="MIT"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://pypi.python.org/pypi/simplejson"
12 WGET_URL="http://pypi.python.org/packages/source/s/$SOURCE/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="python"
16 BUILD_DEPENDS="python-dev setuptools"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # Cross compilation hack to avoid using compiler wich build python
22 # itself.
23 case "$ARCH" in
24 arm*)
25 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
26 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
27 /usr/bin/i486-slitaz-linux-gcc ;;
28 esac &&
29 python setup.py build &&
30 python setup.py install --root=$DESTDIR &&
31 case "$ARCH" in
32 arm*)
33 rm /usr/bin/i486-slitaz-linux-gcc &&
34 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
35 esac
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 cp -a $install/usr/lib $fs/usr
43 }
45 # Remove old package.
46 post_install()
47 {
48 [ ! -d $1/var/lib/tazpkg/installed/simplejson ] ||
49 rm -rf $1/var/lib/tazpkg/installed/simplejson
50 }