wok-6.x annotate python-asterisk/receipt @ rev 25264

updated re2c (1.3 -> 3.0)
author Hans-G?nter Theisgen
date Fri Jul 15 08:59:55 2022 +0100 (2022-07-15)
parents 076f424196b2
children
rev   line source
pascal@14500 1 # SliTaz package receipt.
pascal@14500 2
pascal@14500 3 PACKAGE="python-asterisk"
pascal@14500 4 SOURCE="py-Asterisk"
pascal@14500 5 VERSION="0.5.1"
pascal@14500 6 CATEGORY="development"
pascal@14500 7 SHORT_DESC="Python bindings for the Asterisk Manager API."
pascal@14500 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15378 9 LICENSE="MIT"
pascal@14500 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@20672 11 WEB_SITE="https://pypi.org/project/$SOURCE/"
pascal@24975 12 WGET_URL="https://pypi.python.org/packages/source/p/$SOURCE/$TARBALL"
pascal@14500 13
pascal@14500 14 DEPENDS="python"
pascal@14500 15 BUILD_DEPENDS="python-dev python"
pascal@14500 16
pascal@24383 17 # What is the latest version available today?
pascal@24288 18 current_version()
pascal@24288 19 {
pascal@24383 20 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||"
pascal@24288 21 }
pascal@24288 22
pascal@14500 23 # Rules to configure and make the package.
pascal@14500 24 compile_rules()
pascal@14500 25 {
pascal@14500 26 python setup.py build &&
pascal@14500 27 python setup.py install --root=$DESTDIR
pascal@14500 28 }
pascal@14500 29
pascal@14500 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14500 31 genpkg_rules()
pascal@14500 32 {
pascal@14500 33 mkdir -p $fs
pascal@14500 34 cp -a $install/usr $fs
pascal@14500 35 }