wok annotate bittorrent/receipt @ rev 25591
enet: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 22 11:01:59 2023 +0000 (14 months ago) |
parents | 1be16cc1cd50 |
children |
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@25021 | 13 WGET_URL="https://web.archive.org/web/20110704154940/http://download.bittorrent.com/dl/archive/$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@25375 | 22 sed '/BitTorrent-/!d;/Stable/d;s|.*BitTorrent-||;s|.[te].*||' | 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 } |