wok-current view python-simplejson/receipt @ rev 24688
updated jhead (3.04 -> 3.06.0.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 12 13:31:56 2022 +0100 (2022-03-12) |
parents | 7cbe6d2c90dc |
children | ba0c300a1105 |
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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
24 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # Cross compilation hack to avoid using compiler wich build python
31 # itself.
32 case "$ARCH" in
33 arm*)
34 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
35 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
36 /usr/bin/i486-slitaz-linux-gcc ;;
37 esac &&
39 python setup.py build &&
40 python setup.py install --root=$DESTDIR &&
42 case "$ARCH" in
43 arm*)
44 rm /usr/bin/i486-slitaz-linux-gcc &&
45 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
46 esac
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr
53 cp -a $install/usr/lib $fs/usr
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 }