wok-6.x annotate trickle/receipt @ rev 24758

xfe: cheat configure
author Hans-G?nter Theisgen
date Fri Mar 18 07:44:06 2022 +0100 (2022-03-18)
parents 34e801e0eb52
children e1e1678c5265
rev   line source
pascal@17410 1 # SliTaz package receipt.
pascal@17410 2
pascal@17410 3 PACKAGE="trickle"
pascal@17410 4 HASH=17ed72d9f10b1be38cea333e7ed7875a3cc9fb7b
pascal@24748 5 VERSION="1.07"
pascal@17410 6 CATEGORY="network"
pascal@17410 7 SHORT_DESC="A portable lightweight userspace bandwidth shaper"
pascal@17410 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17410 9 LICENSE="BSD"
pascal@22829 10 TARBALL="$PACKAGE-${VERSION/_/-}.zip"
pascal@22829 11 WEB_SITE="https://github.com/mariusae/trickle/"
pascal@17410 12 WGET_URL="https://github.com/mariusae/trickle/archive/$HASH.zip"
pascal@17410 13
pascal@17482 14 DEPENDS="libevent"
pascal@17413 15 BUILD_DEPENDS="libevent-dev wget automake autoconf libtool"
pascal@17410 16
pascal@24497 17 # What is the latest version available today?
pascal@24497 18 current_version()
pascal@24497 19 {
pascal@24497 20 wget -O - $WEB_SITE/commits/master 2>/dev/null | \
pascal@24497 21 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
pascal@24497 22 }
pascal@24497 23
pascal@17410 24 # Rules to configure and make the package.
pascal@17410 25 compile_rules()
pascal@17410 26 {
pascal@17410 27 touch libtrickle.so
pascal@21490 28 libtoolize -f
pascal@17413 29 aclocal
pascal@17413 30 autoconf
pascal@17413 31 automake --add-missing
pascal@17410 32 ./configure --prefix=/usr \
pascal@17410 33 $CONFIGURE_ARGS &&
pascal@20582 34 make -j 1 &&
pascal@20572 35 make -j 1 DESTDIR=$DESTDIR install
pascal@17410 36 }
pascal@17410 37
pascal@17410 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17410 39 genpkg_rules()
pascal@17410 40 {
pascal@17410 41 mkdir -p $fs/usr
pascal@17410 42 cp -a $install/usr/bin $fs/usr
pascal@17410 43 }