wok-6.x annotate 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
rev   line source
mimas@2018 1 # SliTaz package receipt.
mimas@2018 2
mimas@2018 3 PACKAGE="rtorrent"
pascal@21555 4 VERSION="0.9.7"
mimas@2018 5 CATEGORY="network"
mimas@2018 6 SHORT_DESC="Ncurses based torrent client"
mimas@2018 7 MAINTAINER="mimas@slitaz.org"
pascal@15593 8 LICENSE="GPL2"
mimas@2018 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@21786 10 WEB_SITE="https://github.com/rakshasa/rtorrent/"
pascal@21555 11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
jozee@4972 12 TAGS="torrent"
mimas@2018 13
slaxemulator@11157 14 DEPENDS="ncurses libtorrent zlib ncursesw xmlrpc-c gcc-lib-base"
slaxemulator@11157 15 BUILD_DEPENDS="ncurses-dev libtorrent-dev libtorrent pkg-config xmlrpc-c-dev \
pascal@21555 16 libsigc++-dev curl-dev automake libtool"
slaxemulator@11157 17
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
mimas@2018 24 # Rules to configure and make the package.
mimas@2018 25 compile_rules()
mimas@2018 26 {
pascal@21555 27 ./autogen.sh
mimas@2018 28 ./configure \
slaxemulator@11157 29 --with-xmlrpc-c \
pascal@2446 30 $CONFIGURE_ARGS &&
slaxemulator@11157 31 make && make install
mimas@2018 32 }
mimas@2018 33
mimas@2018 34 # Rules to gen a SliTaz package suitable for Tazpkg.
mimas@2018 35 genpkg_rules()
mimas@2018 36 {
mimas@2018 37 mkdir -p $fs/usr
slaxemulator@11157 38 cp -a $install/usr/bin $fs/usr
mimas@2018 39 }