wok view elinks-small/receipt @ rev 24427

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 12 11:42:56 2022 +0000 (2022-02-12)
parents 2ce8e40ab44e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="elinks-small"
4 VERSION="0.12pre6"
5 CATEGORY="network"
6 SHORT_DESC="Small Elinks www text browser version (no JS SSL GPM)"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="elinks"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://elinks.or.cz"
12 WGET_URL="$WEB_SITE/download/$TARBALL"
13 TAGS="web-browser"
14 #HOST_ARCH="i486 arm"
16 TAGS="browser web"
17 DEPENDS="bzip2 zlib libidn expat"
18 BUILD_DEPENDS="bzip2-dev zlib-dev libidn-dev expat-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
24 sed "/current/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --enable-small \
32 --enable-fastmem \
33 --disable-backtrace \
34 --without-gnutls \
35 --without-openssl \
36 --without-spidermonkey \
37 --without-gpm \
38 --without-x \
39 $CONFIGURE_ARGS &&
40 make && make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/bin
47 # No conflict with full elinks
48 cp -a $install/usr/bin/elinks $fs/usr/bin/elinks-small
49 }