wok-6.x annotate wput/receipt @ rev 24340

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 31 11:41:46 2022 +0000 (2022-01-31)
parents a0fe56fb9c41
children 7dd01dedad38
rev   line source
pascal@11228 1 # SliTaz package receipt.
pascal@11228 2
pascal@11228 3 PACKAGE="wput"
pascal@11228 4 VERSION="0.6.2"
pascal@11228 5 CATEGORY="network"
pascal@11228 6 SHORT_DESC="A tiny wget-like ftp-client for uploading files"
pascal@11228 7 MAINTAINER="l.lemarinel@gmail.com"
pascal@15363 8 LICENSE="GPL2"
pascal@11228 9 WEB_SITE="http://wput.sourceforge.net/"
pascal@11228 10 TARBALL="${PACKAGE}-${VERSION}.tgz"
pascal@11228 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@16027 12 HOST_ARCH="i486 arm"
pascal@11228 13
pascal@24340 14 # What is the latest version available today?
pascal@24340 15 current_version()
pascal@24340 16 {
pascal@24340 17 wget -O - https://sourceforge.net/projects/wput/files/wput/ 2>/dev/null | \
pascal@24340 18 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24340 19 sed '/scope="row/!d;s|.*/wput/||;s|/.*||;q'
pascal@24340 20 }
pascal@24340 21
pascal@11228 22 # Rules to configure and make the package.
pascal@11228 23 compile_rules()
pascal@11228 24 {
pascal@11228 25 sed -i "s|^prefix *=.*|prefix = $DESTDIR/usr|" Makefile.in
pankso@16027 26 ./configure \
pankso@16027 27 --prefix=/usr \
pascal@11228 28 --disable-g-switch \
pankso@16027 29 --without-ssl \
pankso@16027 30 $CONFIGURE_ARGS &&
pascal@11228 31 make &&
pascal@11228 32 make DESTDIR=$DESTDIR install
pascal@11228 33 }
pascal@11228 34
pascal@11228 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11228 36 genpkg_rules()
pascal@11228 37 {
pascal@11228 38 mkdir -p $fs/usr
pascal@15363 39 cp -a $install/usr/bin $fs/usr
pascal@19933 40 rm -f $fs/usr/bin/wdel
pascal@19933 41 ln -s wput $fs/usr/bin/wdel
pascal@11228 42 }