wok-6.x view sshpass/receipt @ rev 24299
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 15 15:21:40 2022 +0000 (2022-01-15) |
parents | c365fe17a816 |
children | 241fb98cab1c |
line source
1 # SliTaz package receipt.
3 PACKAGE="sshpass"
4 VERSION="1.09"
5 CATEGORY="network"
6 SHORT_DESC="Non-interactive ssh password authentication."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://sourceforge.net/projects/sshpass/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 SUGGESTED="openssh"
16 current_version()
17 {
18 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
20 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q"
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --prefix=/usr \
28 $CONFIGURE_ARGS &&
29 make &&
30 make install DESTDIR=$DESTDIR
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cook_copy_folders bin
37 }