wok-current annotate 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
rev   line source
pascal@20295 1 # SliTaz package receipt.
pascal@20295 2
pascal@20295 3 PACKAGE="python-pyajam"
pascal@20295 4 GITHASH="7df98e46bd1c2be024299b572e4ccfeab1b916be"
pascal@20295 5 VERSION="${GITHASH:0:7}"
pascal@20295 6 CATEGORY="development"
pascal@20295 7 SHORT_DESC="Pythonic interface of Asterisk AJAM protocol"
pascal@20295 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@20295 9 LICENSE="GPL3"
pascal@20295 10 WEB_SITE="https://github.com/litnimax/PyAjam"
pascal@20295 11 TARBALL="$PACKAGE-$VERSION.zip"
pascal@20295 12 WGET_URL="$WEB_SITE/archive/$GITHASH.zip"
pascal@20295 13
pascal@20295 14 DEPENDS="python"
pascal@21582 15 BUILD_DEPENDS="python-setuptools"
pascal@20295 16
pascal@24476 17 # What is the latest version available today?
pascal@24476 18 current_version()
pascal@24476 19 {
pascal@24476 20 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
pascal@24476 21 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
pascal@24476 22 }
pascal@24476 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 {
pascal@20295 33 cp -a $install/usr $fs/
pascal@20295 34 }