wok-6.x view gentorrent/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 d941c1946d7f
children 7ae189994f37
line source
1 # SliTaz package receipt.
3 PACKAGE="gentorrent"
4 VERSION="1.0.2"
5 CATEGORY="network"
6 SHORT_DESC="Creates BitTorrent metainfo files with any BitTorrent extension."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://tanguy.ortolo.eu/perso/pages/projets/gentorrent"
11 WGET_URL="http://git.ortolo.eu/gentorrent.git/snapshot/version/$VERSION.tar.gz"
13 DEPENDS="py3k"
14 BUILD_DEPENDS=""
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - http://git.ortolo.eu/gentorrent.git/ 2>/dev/null | \
20 sed '/version\/[0-9]/!d;s|.*version/||;s|<.*||' | sort -Vr | sed q
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin
27 cp -a $src/*/gentorrent.py $fs/usr/bin
28 }