wok annotate swagger-py/receipt @ rev 25707

Up perl-net-pcap (0.21), qtermwidget (0.5.1), youtube-dl-gui (0.3.8)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 05 14:08:34 2024 +0000 (2 months ago)
parents 5ea0ce1cecc0
children
rev   line source
pascal@19245 1 # SliTaz package receipt.
pascal@19245 2
pascal@19244 3 PACKAGE="swagger-py"
pascal@19244 4 VERSION="0.2.1"
pascal@19244 5 CATEGORY="development"
pascal@19244 6 SHORT_DESC="Swagger client library for Python."
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/digium/swagger-py"
pascal@19244 11 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
pascal@19244 12
pascal@19244 13 DEPENDS="python"
pascal@21581 14 BUILD_DEPENDS="python python-setuptools"
pascal@19244 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@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 }