wok view python-pyajam/receipt @ rev 24476

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 18 09:29:30 2022 +0000 (2022-02-18)
parents 814362194a8d
children 1a39a3d55d0e
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pyajam"
4 GITHASH="7df98e46bd1c2be024299b572e4ccfeab1b916be"
5 VERSION="${GITHASH:0:7}"
6 CATEGORY="development"
7 SHORT_DESC="Pythonic interface of Asterisk AJAM protocol"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="https://github.com/litnimax/PyAjam"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="$WEB_SITE/archive/$GITHASH.zip"
14 DEPENDS="python"
15 BUILD_DEPENDS="python-setuptools"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
21 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\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 }