wok-6.x view elinks/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"
4 VERSION="0.12pre6"
5 CATEGORY="network"
6 SHORT_DESC="Full featured www text browser"
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://elinks.or.cz"
11 WGET_URL="$WEB_SITE/download/$TARBALL"
12 TAGS="web-browser"
14 DEPENDS="openssl bzip2 spidermonkey zlib libidn expat gpm"
15 BUILD_DEPENDS="openssl-dev bzip2-dev spidermonkey-dev zlib-dev libidn-dev \
16 expat-dev gpm-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/current/d;/$PACKAGE-/!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 # --enable-fastmem: disables internal `malloc()` debugging and
29 # use `alloca()` wherever possible.
30 # --disable-backtrace disables internal backtrace code.
31 ./configure \
32 --enable-fastmem \
33 --disable-backtrace \
34 --without-x \
35 $CONFIGURE_ARGS &&
36 make && make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/bin $fs/usr
44 }