wok view openconnect/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 848e2021d813
children bc2b9d9bed6f
line source
1 # SliTaz package receipt.
3 PACKAGE="openconnect"
4 VERSION="8.10"
5 CATEGORY="network"
6 SHORT_DESC="A client for Cisco's AnyConnect SSL VPN."
7 MAINTAINER="samuel_trassare@yahoo.com"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://www.infradead.org/openconnect/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="ftp://ftp.infradead.org/pub/$PACKAGE/$TARBALL"
14 DEPENDS="libxml2 openssl vpnc"
15 # Will require libtirpc when glibc is upgraded to 2.14.
16 BUILD_DEPENDS="libxml2-dev openssl-dev pkg-config vpnc zlib"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure $CONFIGURE_ARGS &&
29 make &&
30 make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
37 mkdir -p $fs/usr/sbin
39 cp -a $install/usr/lib/*so* $fs/usr/lib
40 cp -a $install/usr/sbin/openconnect $fs/usr/sbin
41 }