wok annotate ari-py/receipt @ rev 25464

httpfs2-fuse: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 30 09:07:42 2022 +0000 (19 months ago)
parents 240fb3120638
children 343c093ad221
rev   line source
pascal@19245 1 # SliTaz package receipt.
pascal@19245 2
pascal@19244 3 PACKAGE="ari-py"
pascal@19244 4 VERSION="0.1.3"
pascal@19244 5 CATEGORY="development"
pascal@19244 6 SHORT_DESC="Library for accessing the Asterisk REST Interface."
pascal@19244 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@19244 8 LICENSE="BSD"
pascal@19244 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@19244 10 WEB_SITE="https://github.com/asterisk/ari-py"
pascal@19244 11 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
pascal@19244 12
pascal@19244 13 DEPENDS="python"
pascal@19244 14 SUGGESTED="asterisk"
pascal@21580 15 BUILD_DEPENDS="python python-setuptools"
pascal@19244 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@19244 23 # Rules to configure and make the package.
pascal@19244 24 compile_rules()
pascal@19244 25 {
pascal@19244 26 python setup.py build &&
pascal@19244 27 python setup.py install --root=$DESTDIR
pascal@19244 28 }
pascal@19244 29
pascal@19244 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@19244 31 genpkg_rules()
pascal@19244 32 {
pascal@19244 33 mkdir -p $fs
pascal@19244 34 cp -a $install/usr $fs
pascal@19244 35 }