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