wok-6.x view python-simplejson/receipt @ rev 25377
updated udpxy (1.0.24.1 -> 1.0.25.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 11:20:37 2022 +0100 (2022-07-30) |
parents | 104a2a2e5484 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-simplejson"
4 VERSION="3.17.6"
5 CATEGORY="development"
6 SHORT_DESC="Simple, fast, extensible JSON encoder and decoder for python."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://pypi.org/project/simplejson/"
10 REPOLOGY="python:simplejson"
12 SOURCE="simplejson"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
16 DEPENDS="python"
17 BUILD_DEPENDS="python python-dev python-setuptools"
19 HOST_ARCH="i486 arm"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
25 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # Cross compilation hack to avoid using compiler wich build python
32 # itself.
33 case "$ARCH" in
34 arm*)
35 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
36 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
37 /usr/bin/i486-slitaz-linux-gcc ;;
38 esac
40 python setup.py build &&
41 python setup.py install --root=$DESTDIR
43 case "$ARCH" in
44 arm*)
45 rm /usr/bin/i486-slitaz-linux-gcc &&
46 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
47 esac
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 cook_copy_folders lib
54 }
56 # Remove old package.
57 post_install()
58 {
59 [ ! -d "$1/var/lib/tazpkg/installed/simplejson" ] ||
60 rm -rf "$1/var/lib/tazpkg/installed/simplejson"
61 }