wok-current view lftp/receipt @ rev 24447
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 17:51:14 2022 +0000 (2022-02-14) |
parents | c60adee9e733 |
children | 2bab61aae6db |
line source
1 # SliTaz package receipt.
3 PACKAGE="lftp"
4 VERSION="4.9.1"
5 CATEGORY="network"
6 SHORT_DESC="Small but powerful ftp client."
7 MAINTAINER="mimas@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://lftp.yar.ru/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://lftp.tech/ftp/$TARBALL"
14 DEPENDS="expat gcc83-lib-base gmp gnutls readline"
15 BUILD_DEPENDS="expat-dev gcc83 gcc83-lib-base gmp-dev gnutls-dev gperf \
16 libgnutls ncurses-dev readline-dev"
18 CROSS="bug: failed at test"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://lftp.yar.ru/get.html 2>/dev/null | \
24 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 CC=gcc-83 \
32 CXX=g++-83 \
33 --with-gnutls \
34 --without-openssl \
35 --build=$HOST_SYSTEM \
36 --host=$HOST_SYSTEM &&
37 make -j 1 &&
38 make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr
45 cp -a $install/usr/bin $fs/usr
46 }