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