wok-6.x view httrack/receipt @ rev 25375
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 30 08:30:06 2022 +0000 (2022-07-30) |
parents | feeb3a07eddd |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="httrack"
4 VERSION="3.49.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="An easy-to-use offline browser utility."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.httrack.com/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://mirror.httrack.com/$TARBALL"
13 DEPENDS="bash zlib libssl"
14 BUILD_DEPENDS="zlib-dev openssl-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - http://www.httrack.com/page/2/ 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure $CONFIGURE_ARGS && make -j1 && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib/httrack
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/lib/*.so* $fs/usr/lib
35 cp -a $install/usr/lib/httrack/*.so* $fs/usr/lib/httrack
36 cp -a $install/usr/share $fs/usr
37 rm -rf $fs/usr/share/man
38 rm -rf $fs/usr/share/doc
39 }