aboutsummaryrefslogtreecommitdiffstats
path: root/main/lynx/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-11-16 14:26:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-16 14:26:06 +0000
commit5e1295d040076f0853941a5562d273bf9b8c0837 (patch)
tree6bb36ad7d688ea985c97e50dac95f29393b6aa1c /main/lynx/APKBUILD
parent2be964e742c984c769619f3799ff3bd9c5a4b91b (diff)
downloadaports-5e1295d040076f0853941a5562d273bf9b8c0837.tar.bz2
aports-5e1295d040076f0853941a5562d273bf9b8c0837.tar.xz
main/lynx: fix build against newer ncurses
Diffstat (limited to 'main/lynx/APKBUILD')
-rw-r--r--main/lynx/APKBUILD35
1 files changed, 15 insertions, 20 deletions
diff --git a/main/lynx/APKBUILD b/main/lynx/APKBUILD
index ff3e6f6b7c..d13ac21f34 100644
--- a/main/lynx/APKBUILD
+++ b/main/lynx/APKBUILD
@@ -5,7 +5,7 @@ pkgname=lynx
pkgver=2.8.8_p2
_relver=${pkgver/_p/rel.}
_v=${_relver%rel.*}
-pkgrel=5
+pkgrel=6
pkgdesc="Cross-platform text-based browser"
url="http://lynx.invisible-island.net/"
arch="all"
@@ -14,21 +14,12 @@ depends="gzip"
makedepends="libressl-dev gettext zlib-dev glib-dev perl ncurses-dev"
install=""
subpackages="$pkgname-doc"
-source="http://invisible-mirror.net/archives/lynx/tarballs/${pkgname}${_relver}.tar.bz2"
-
-_builddir="$srcdir"/${pkgname}${_v//./-}
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+source="http://invisible-mirror.net/archives/lynx/tarballs/${pkgname}${_relver}.tar.bz2
+ ncurses.patch"
+builddir="$srcdir"/${pkgname}${_v//./-}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -40,16 +31,20 @@ build() {
--enable-ipv6 \
|| return 1
make helpdir=/usr/share/doc/lynx/help \
- docdir=/usr/share/doc/lynx || return 1
+ docdir=/usr/share/doc/lynx
+}
+
+check() {
+ cd "$builddir"
+ ./lynx -version
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install install-help install-doc \
helpdir=/usr/share/doc/lynx/help \
- docdir=/usr/share/doc/lynx || return 1
+ docdir=/usr/share/doc/lynx
}
-md5sums="b231c2aa34dfe7ca25681ef4e55ee7e8 lynx2.8.8rel.2.tar.bz2"
-sha256sums="6980e75cf0d677fd52c116e2e0dfd3884e360970c88c8356a114338500d5bee7 lynx2.8.8rel.2.tar.bz2"
-sha512sums="a475fb7b79641ddd7c20861e16d3d71ccb1a5ae33247cce0b9e73690dd664ebf129964c026bc33b0f082a7585e5a6acae9afc9a65f308e19b49fa0a8bebc0362 lynx2.8.8rel.2.tar.bz2"
+sha512sums="a475fb7b79641ddd7c20861e16d3d71ccb1a5ae33247cce0b9e73690dd664ebf129964c026bc33b0f082a7585e5a6acae9afc9a65f308e19b49fa0a8bebc0362 lynx2.8.8rel.2.tar.bz2
+cb5336b3528d2d52dc3414e908ffa8c01bea9c0d111d542259308d673ee7dd93814a6281ba7d0b31c96b4d1276726ec3806e29e3be287d0bc257a401826bdc3f ncurses.patch"