wok-current annotate python-restkit/receipt @ rev 25733
Accept licence PyQt-x11-gpl, bump firmware* to 20240610, build imagemagick (merge)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Dec 20 16:13:23 2024 +0000 (6 days ago) |
parents | 1df6fa555414 |
children |
rev | line source |
---|---|
claudinei@14879 | 1 # SliTaz package receipt. |
claudinei@14879 | 2 |
claudinei@14879 | 3 PACKAGE="python-restkit" |
Hans-G?nter@23555 | 4 VERSION="4.2.2" |
claudinei@14879 | 5 CATEGORY="development" |
Hans-G?nter@23555 | 6 SHORT_DESC="An HTTP resource kit for Python." |
claudinei@14879 | 7 MAINTAINER="claudinei@slitaz.org" |
pascal@15376 | 8 LICENSE="MIT" |
Hans-G?nter@23555 | 9 |
Hans-G?nter@23555 | 10 SOURCE="restkit" |
Hans-G?nter@23555 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23555 | 12 WEB_SITE="https://pypi.org/project/restkit/" |
Hans-G?nter@23555 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
claudinei@14879 | 14 |
claudinei@14879 | 15 DEPENDS="python python-http-parser python-socketpool" |
Hans-G?nter@23555 | 16 BUILD_DEPENDS="python python-dev python-setuptools" |
claudinei@14879 | 17 |
pascal@24383 | 18 # What is the latest version available today? |
pascal@24288 | 19 current_version() |
pascal@24288 | 20 { |
pascal@24383 | 21 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||" |
pascal@24288 | 22 } |
pascal@24288 | 23 |
pascal@24288 | 24 # Rules to configure and make the package. |
claudinei@14879 | 25 compile_rules() |
claudinei@14879 | 26 { |
claudinei@14879 | 27 python setup.py install --root=$DESTDIR |
claudinei@14879 | 28 } |
claudinei@14879 | 29 |
claudinei@14879 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@14879 | 31 genpkg_rules() |
claudinei@14879 | 32 { |
claudinei@14879 | 33 mkdir -p $fs/usr |
Hans-G?nter@23555 | 34 |
Hans-G?nter@23555 | 35 rm -rf $install/usr/restkit |
Hans-G?nter@23555 | 36 cp -a $install/usr $fs |
claudinei@14879 | 37 } |