wok annotate python-ari/receipt @ rev 25633

wbar: remove imlib2-config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 24 10:30:04 2023 +0000 (6 months ago)
parents 5ea0ce1cecc0
children
rev   line source
pascal@20292 1 # SliTaz package receipt.
pascal@20292 2
pascal@20292 3 PACKAGE="python-ari"
pascal@20292 4 VERSION="0.1.3"
pascal@20292 5 CATEGORY="development"
pascal@20292 6 SHORT_DESC="Library for accessing the Asterisk REST Interface"
pascal@20292 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@20292 8 LICENSE="BSD"
pascal@20292 9 WEB_SITE="https://github.com/asterisk/ari-py"
pascal@20292 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20292 11 WGET_URL="https://github.com/asterisk/ari-py/archive/$VERSION.tar.gz"
pascal@20292 12
pascal@20292 13 DEPENDS="python"
pascal@21581 14 BUILD_DEPENDS="python-setuptools"
pascal@20292 15
pascal@25601 16 # What is the latest version available today?
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25601 20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 21 }
pascal@24055 22
pascal@20292 23 # Rules to configure and make the package.
pascal@20292 24 compile_rules()
pascal@20292 25 {
pascal@20292 26 python setup.py install --prefix=/usr --root=$DESTDIR
pascal@20292 27 }
pascal@20292 28
pascal@20292 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20292 30 genpkg_rules()
pascal@20292 31 {
pascal@20292 32 cp -a $install/usr $fs/
pascal@20292 33 }