git » lynx.git » main » tree

[main] / PKGBUILD

# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=lynx
pkgver=2.9.1
pkgrel=1
pkgdesc='A text browser for the World Wide Web'
url='https://lynx.invisible-island.net/'
arch=(armv7h 'aarch64')
license=(GPL-2.0-only)
depends=(brotli
         bzip2
         glibc
         libidn2
         ncurses
         openssl
         zlib)
backup=(etc/lynx.cfg)
options=(!lto)
_archive="$pkgname$pkgver"
source=("https://invisible-mirror.net/archives/lynx/tarballs/$_archive.tar.bz2"{,.asc})
sha256sums=('a6db9b22c20df435df3757925a505531ce9a514d134742e935d71aa5c41339c5'
            'SKIP')
validpgpkeys=('19882D92DDA4C400C22C0D56CC2AF4472167BE03') # Thomas Dickey <dickey@invisible-island.net>

build() {
	cd "$_archive"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--with-ssl=/usr \
		--enable-externs \
		--enable-nls \
		--enable-ipv6 \
		--mandir=/usr/share/man
	make
}

package() {
	cd "$_archive"
	make DESTDIR="$pkgdir" install
	# FS#20404 - points to local help
	sed -i -e "s|^HELPFILE.*$|HELPFILE:file:///usr/share/doc/lynx/lynx_help/lynx_help_main.html|" "${pkgdir}/etc/lynx.cfg"
	install -d "$pkgdir/usr/share/doc/lynx"
	cp -rf lynx_help "$pkgdir/usr/share/doc/lynx"
}