wok-next view python-simplejson/receipt @ rev 18388

btrfs-progs: race condition
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 18 13:29:50 2015 +0200 (2015-09-18)
parents 048c66ed11ec
children 1067bb7f1e24
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 rm -rf $1/var/lib/tazpkg/installed/simplejson
49 }