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