wok view python-simplejson/receipt @ rev 23691
updated tcllib (1.19 -> 1.20)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 27 06:38:55 2020 +0100 (2020-04-27) |
parents | 814362194a8d |
children | 104a2a2e5484 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-simplejson"
4 VERSION="3.17.0"
5 CATEGORY="development"
6 SHORT_DESC="Simple, fast, extensible JSON encoder/decoder for python."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://pypi.python.org/pypi/simplejson"
11 SOURCE="simplejson"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
15 DEPENDS="python"
16 BUILD_DEPENDS="python python-dev python-setuptools"
18 HOST_ARCH="i486 arm"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 # Cross compilation hack to avoid using compiler wich build python
24 # itself.
25 case "$ARCH" in
26 arm*)
27 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
28 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
29 /usr/bin/i486-slitaz-linux-gcc ;;
30 esac &&
32 python setup.py build &&
33 python setup.py install --root=$DESTDIR &&
35 case "$ARCH" in
36 arm*)
37 rm /usr/bin/i486-slitaz-linux-gcc &&
38 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
39 esac
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
46 cp -a $install/usr/lib $fs/usr
47 }
49 # Remove old package.
50 post_install()
51 {
52 [ ! -d "$1/var/lib/tazpkg/installed/simplejson" ] ||
53 rm -rf "$1/var/lib/tazpkg/installed/simplejson"
54 }