Subject: [alpine-aports] [PATCH] main/lynx: fix download link and depend on gzip

From: Sören Tempel <[email-masked]>
Date: Fri, 9 Oct 2015 01:29:34 +0200

The lynx website has been moved to http://lynx.invisible-island.net the
latest version available from that website is 2.8.8, version 2.8.8_p2
doesn't seem to be a valid lynx version (any more?).

Furthermore lynx uses some GNU gzip longopts and therefore needs to have
a GNU gzip runtime dependency.
---
 main/lynx/APKBUILD | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/main/lynx/APKBUILD b/main/lynx/APKBUILD
index f3b05b2..0bb7913 100644
--- a/main/lynx/APKBUILD
+++ b/main/lynx/APKBUILD
@@ -1,23 +1,21 @@
+# Contributor: Sören Tempel <[email-masked]>
 # Contributor: Kiyoshi Aman <[email-masked]>
 # Maintainer: Kiyoshi Aman <[email-masked]>
 pkgname=lynx
-pkgver=2.8.8_p2
+pkgver=2.8.8
+_relver=${pkgver}rel.2
 pkgrel=0
-_v=${pkgver%_*}
-_d=${_v//./-}
-_ver=${pkgver/_p/rel.}
-
 pkgdesc="Cross-platform text-based browser"
-url="http://lynx.isc.org"
+url="http://lynx.invisible-island.net/"
 arch="all"
 license="GPL"
-depends=
+depends="gzip"
 makedepends="openssl-dev gettext zlib-dev glib-dev perl ncurses-dev"
 install=""
 subpackages="$pkgname-doc"
-source="http://lynx.isc.org/lynx${_v}/lynx${_ver}.tar.bz2"
+source="http://invisible-mirror.net/archives/lynx/tarballs/${pkgname}${_relver}.tar.bz2"
 
-_builddir="$srcdir/${pkgname}${_d}"
+_builddir="$srcdir"/${pkgname}${pkgver//./-}
 prepare() {
 	local i
 	cd "$_builddir"
@@ -35,6 +33,10 @@ build() {
 		--host=$CHOST \
 		--prefix=/usr \
 		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--infodir=/usr/share/info \
+		--localstatedir=/var \
+		--enable-ipv6 \
 		|| return 1
 	make helpdir=/usr/share/doc/lynx/help \
 		docdir=/usr/share/doc/lynx || return 1
-- 
2.6.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---