wok annotate python-paho-mqtt/receipt @ rev 25430
Up os-prober (1.81)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 19 06:26:39 2022 +0000 (2022-08-19) |
parents | ac8ca9758df1 |
children | 0262035dc1e7 |
rev | line source |
---|---|
pascal@20295 | 1 # SliTaz package receipt. |
pascal@20295 | 2 |
pascal@20295 | 3 PACKAGE="python-paho-mqtt" |
Hans-G?nter@25211 | 4 VERSION="1.6.1" |
pascal@20295 | 5 CATEGORY="development" |
Hans-G?nter@23521 | 6 SHORT_DESC="Eclipse Paho MQTT Python client library." |
pascal@20295 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20295 | 8 LICENSE="epl-v10 edl-v10" |
pascal@20295 | 9 WEB_SITE="https://pypi.org/project/paho-mqtt/" |
Hans-G?nter@23521 | 10 |
Hans-G?nter@25211 | 11 SOURCE="paho-mqtt" |
Hans-G?nter@25211 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@25211 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@20295 | 14 |
pascal@20295 | 15 DEPENDS="python" |
Hans-G?nter@23521 | 16 BUILD_DEPENDS="python python-setuptools" |
pascal@20295 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24299 | 20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
pascal@20295 | 24 # Rules to configure and make the package. |
pascal@20295 | 25 compile_rules() |
pascal@20295 | 26 { |
pascal@20295 | 27 python setup.py install --prefix=/usr --root=$DESTDIR |
pascal@20295 | 28 } |
pascal@20295 | 29 |
pascal@20295 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20295 | 31 genpkg_rules() |
pascal@20295 | 32 { |
Hans-G?nter@23521 | 33 cp -a $install/usr $fs |
pascal@20295 | 34 } |