wok-current annotate bittorrent/receipt @ rev 24445

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 14:14:23 2022 +0000 (2022-02-14)
parents 8a056aec03a0
children 1be16cc1cd50
rev   line source
pascal@16787 1 # SliTaz package receipt.
pascal@16787 2
pascal@16787 3 PACKAGE="bittorrent"
pascal@16787 4 VERSION="5.2.2"
pascal@16787 5 CATEGORY="network"
pascal@16787 6 SHORT_DESC="A tool for distributing files. Each new downloader add new upload capacity."
pascal@16787 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16787 8 LICENSE="other"
Hans-G?nter@22169 9 WEB_SITE="https://www.bittorrent.com/"
Hans-G?nter@22169 10
Hans-G?nter@22169 11 SOURCE="BitTorrent"
pascal@16787 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@16787 13 WGET_URL="http://distro.ibiblio.org/sourcemage/mirror/fallback/$TARBALL"
pascal@16787 14
pascal@16787 15 DEPENDS="python"
Hans-G?nter@22169 16 BUILD_DEPENDS="python python-constantly twisted"
pascal@16787 17
pascal@24391 18 # What is the latest version available today?
pascal@24391 19 current_version()
pascal@24391 20 {
pascal@24391 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24391 22 sed '/BitTorrent/!d;s|.*BitTorrent-||;s|.tar.*||' | sort -Vr | sed q
pascal@24391 23 }
pascal@24391 24
pascal@16787 25 # Rules to configure and make the package.
pascal@16787 26 compile_rules()
pascal@16787 27 {
pascal@16787 28 python setup.py install --root=$DESTDIR
pascal@16787 29 }
pascal@16787 30
pascal@16787 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16787 32 genpkg_rules()
pascal@16787 33 {
pascal@16787 34 cp -a $install/* $fs
pascal@16787 35 }