wok annotate xget/receipt @ rev 25651

Up collectd-bind (5.12.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 04 17:49:25 2024 +0000 (9 months ago)
parents b0069c845544
children
rev   line source
pascal@11204 1 # SliTaz package receipt.
pascal@11204 2
pascal@11204 3 PACKAGE="xget"
pascal@11204 4 SOURCE="xcpu"
pascal@11204 5 VERSION="1.2.3"
pascal@11204 6 CATEGORY="network"
pascal@11204 7 SHORT_DESC="Scalable file-transfer agent."
pascal@11204 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15601 9 LICENSE="MIT GPL"
pascal@11204 10 TARBALL="${SOURCE}1-$VERSION.tar.gz"
pascal@25469 11 WEB_SITE="https://xcpu.sourceforge.net/xget"
pascal@11204 12 WGET_URL="$SF_MIRROR/xcpu/$VERSION/$TARBALL"
pascal@11204 13
pascal@11204 14 DEPENDS=""
gokhlayeh@11469 15 BUILD_DEPENDS="openssl openssl-dev elfutils-dev"
pascal@11204 16
pascal@25607 17 # What is the latest version available today?
pascal@24108 18 current_version()
pascal@24108 19 {
pascal@24108 20 wget -O - https://sourceforge.net/projects/$SOURCE/files/ 2>/dev/null | \
pascal@25607 21 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
pascal@24108 22 sed '/files_name_h/!d;/XCPU/!d;s|.*XCPU/||;s|/.*||;q'
pascal@24108 23 }
pascal@24108 24
pascal@11204 25 # Rules to configure and make the package.
pascal@11204 26 compile_rules()
pascal@11204 27 {
pascal@11204 28 cd $src
pascal@11204 29 make -j 1 &&
pascal@11204 30 make INSTALLPREFIX=$DESTDIR/usr install
pascal@11204 31 }
pascal@11204 32
pascal@11204 33 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@11469 34 genpkg_rules()
pascal@11204 35 {
pascal@11204 36 mkdir -p $fs/usr/sbin
pascal@15601 37 cp -a $install/usr/sbin/xget $fs/usr/sbin
pascal@11204 38 }