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