wok-current annotate ncftp/receipt @ rev 24453
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 15 18:29:48 2022 +0000 (2022-02-15) |
parents | 41d7f62d0d2c |
children | bc2b9d9bed6f |
rev | line source |
---|---|
pascal@15197 | 1 # SliTaz package receipt. |
pascal@15197 | 2 |
pascal@15197 | 3 PACKAGE="ncftp" |
Hans-G?nter@21525 | 4 VERSION="3.2.6" |
pascal@15197 | 5 CATEGORY="network" |
pascal@15197 | 6 SHORT_DESC="A File Transfer Protocol client." |
pascal@15197 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15601 | 8 LICENSE="Artistic" |
Hans-G?nter@21525 | 9 WEB_SITE="https://www.ncftp.com/ncftp/" |
Hans-G?nter@21525 | 10 |
Hans-G?nter@21525 | 11 TARBALL="$PACKAGE-$VERSION-src.tar.xz" |
pascal@15247 | 12 WGET_URL="ftp://ftp.ncftp.com/ncftp/$TARBALL" |
pascal@15197 | 13 |
pascal@15197 | 14 DEPENDS="ncurses" |
pascal@15197 | 15 BUILD_DEPENDS="ncurses-dev" |
pascal@15197 | 16 |
pascal@24453 | 17 # What is the latest version available today? |
pascal@24453 | 18 current_version() |
pascal@24453 | 19 { |
pascal@24453 | 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q |
pascal@24453 | 22 } |
pascal@24453 | 23 |
pascal@15197 | 24 # Rules to configure and make the package. |
pascal@15197 | 25 compile_rules() |
pascal@15197 | 26 { |
pascal@17672 | 27 export LDFLAGS="$LDFLAGS -ltinfo" |
pascal@15197 | 28 ./configure --prefix=/usr --sysconfdir=/etc && |
pascal@15197 | 29 make && |
pascal@15197 | 30 make DESTDIR=$DESTDIR install |
pascal@15197 | 31 } |
pascal@15197 | 32 |
pascal@15197 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15197 | 34 genpkg_rules() |
pascal@15197 | 35 { |
pascal@15197 | 36 mkdir -p $fs/usr |
pascal@15197 | 37 cp -a $install/usr/bin $fs/usr |
pascal@15197 | 38 } |