wok view lynx/receipt @ rev 25309
Up cpige (1.7)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 20 10:12:48 2022 +0000 (2022-07-20) |
parents | ede1d184d5c5 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="lynx"
4 VERSION="2.8.9rel1"
5 CATEGORY="network"
6 SHORT_DESC="Terminal-based text-only browser."
7 MAINTAINER="samuel_trassare@yahoo.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://lynx.invisible-island.net/"
11 TARBALL="$PACKAGE${VERSION/rel/rel.}.tar.bz2"
12 WGET_URL="https://invisible-mirror.net/archives/$PACKAGE/tarballs/$TARBALL"
14 # Will require build dep libtirpc after glibc is upgraded to 2.14.
15 DEPENDS="libssl ncursesw zlib"
16 BUILD_DEPENDS="libtirpc ncursesw-dev openssl-dev zlib-dev patch"
18 HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
24 sed '/href="lynx/!d;/tar/!d;/dev/d;/pre/d;/cur/d;s|.*lynx||;s|.tar.*||;s|rel\.|rel|' | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # LFS security patch
31 patch -Np1 -i $stuff/lynx-2.8.9rel.1-security_fix-1.patch || return 1
33 ./configure $CONFIGURE_ARGS \
34 --sysconfdir=/etc \
35 --mandir=/usr/share/man \
36 --enable-ipv6 \
37 --enable-gnutls-compat \
38 --enable-nls \
39 --with-ssl \
40 --with-gnutls \
41 --with-zlib \
42 --with-screen=ncursesw \
43 --with-nss-compat &&
44 make &&
45 make install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr
53 cp -a $install/usr/bin $fs/usr
54 cp -a $install/etc $fs/
55 }
57 testsuite()
58 {
59 readelf -h $install/usr/bin/lynx
60 }