wok view python-paho-mqtt/receipt @ rev 25442

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