wok view wput/receipt @ rev 25800

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