wok view ari-py/receipt @ rev 25769
libmaxminddb, ndpi: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 09:45:40 2024 +0000 (2 months ago) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="ari-py"
4 VERSION="0.1.3"
5 CATEGORY="development"
6 SHORT_DESC="Library for accessing the Asterisk REST Interface."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/asterisk/ari-py"
11 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
13 DEPENDS="python"
14 SUGGESTED="asterisk"
15 BUILD_DEPENDS="python python-setuptools"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 python setup.py build &&
28 python setup.py install --root=$DESTDIR
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs
35 cp -a $install/usr $fs
36 }