wok view libtorrent/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 5608a6c51d53
children 9773d49d458c
line source
1 # SliTaz package receipt.
3 PACKAGE="libtorrent"
4 VERSION="0.13.8"
5 CATEGORY="network"
6 SHORT_DESC="Torrent library for rtorrent."
7 MAINTAINER="mimas@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://rakshasa.github.io/rtorrent/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/rakshasa/$PACKAGE/archive/v$VERSION.tar.gz"
14 DEPENDS="curl gcc83-lib-base libsigc++ openssl"
15 BUILD_DEPENDS="automake curl-dev gcc83 libsigc++-dev libtool openssl-dev"
17 CROSS_BUGS="bug: can not run test program"
18 #HOST_ARCH="i486 arm"
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./autogen.sh &&
30 ./configure \
31 CC=gcc-83 \
32 CXX=g++-83 \
33 $CONFIGURE_ARGS &&
34 make -j 1 &&
35 make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 }