wok-6.x view python-pyajam/receipt @ rev 25445
itaka: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 06 07:38:52 2022 +0000 (2022-09-06) |
parents | 9aa1f88b45db |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pyajam"
4 VERSION="0.2"
5 CATEGORY="development"
6 SHORT_DESC="Pythonic interface of Asterisk AJAM protocol."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://pypi.org/project/PyAjam/"
10 REPOLOGY="python:pyajam"
12 SOURCE="PyAjam"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
16 DEPENDS="python"
17 BUILD_DEPENDS="python-setuptools"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://raw.githubusercontent.com/gbour/PyAjam/master/CHANGES 2>/dev/null | \
23 sed '/^[0-9]/!d;s| .*||' | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 python setup.py install --prefix=/usr --root=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/usr $fs
36 }