wok-current view python-simplejson/receipt @ rev 20392

libgnutls: add p11-kit, see http://forum.slitaz.org/topic/current-slitaz-iso-needs-you-to-install-p11-kit-package
author Erkan Yilmaz <erkan@slitaz.org>
date Sun Jun 24 09:21:47 2018 +0000 (2018-06-24)
parents 1067bb7f1e24
children 814362194a8d
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 }