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

Add neofetch, tcl2c-fork; build two versions of tklauncher (using tcl2c and tcl2c-fork) with different warnings
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jun 23 09:45:42 2018 +0300 (2018-06-23)
parents 6c73b944e8dd
children 92698cd69f34
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"
14 DEPENDS="python"
15 BUILD_DEPENDS="python-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # Cross compilation hack to avoid using compiler wich build python
21 # itself.
22 case "$ARCH" in
23 arm*)
24 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
25 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
26 /usr/bin/i486-slitaz-linux-gcc ;;
27 esac &&
28 python setup.py build &&
29 python setup.py install --root=$DESTDIR &&
30 case "$ARCH" in
31 arm*)
32 rm /usr/bin/i486-slitaz-linux-gcc &&
33 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
34 esac
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $install/usr/lib $fs/usr
42 }
44 # Remove old package.
45 post_install()
46 {
47 [ ! -d "$1/var/lib/tazpkg/installed/simplejson" ] ||
48 rm -rf "$1/var/lib/tazpkg/installed/simplejson"
49 }