wok view rtorrent/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents 8296cfe551a1
children 9773d49d458c
line source
1 # SliTaz package receipt.
3 PACKAGE="rtorrent"
4 VERSION="0.9.7"
5 CATEGORY="network"
6 SHORT_DESC="Ncurses based torrent client"
7 MAINTAINER="mimas@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/rakshasa/rtorrent/"
11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
12 TAGS="torrent"
14 DEPENDS="ncurses libtorrent zlib ncursesw xmlrpc-c gcc-lib-base"
15 BUILD_DEPENDS="ncurses-dev libtorrent-dev libtorrent pkg-config xmlrpc-c-dev \
16 libsigc++-dev curl-dev automake libtool"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./autogen.sh
28 ./configure \
29 --with-xmlrpc-c \
30 $CONFIGURE_ARGS &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $install/usr/bin $fs/usr
39 }