1 # Maintainer: Pierre Schmitz <pierre@archlinux.de>
2 # Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
9 pkgdesc="A text browser for the World Wide Web"
10 url="https://lynx.invisible-island.net/"
13 depends=('openssl' 'libidn' 'ncurses')
14 backup=('etc/lynx.cfg')
16 source=("https://invisible-mirror.net/archives/lynx/tarballs/${pkgname}${_relver}.tar.bz2"{,.asc}
17 'CVE-2021-38165.diff')
18 sha256sums=('387f193d7792f9cfada14c60b0e5c0bff18f227d9257a39483e14fa1aaf79595'
20 '693f025a6886b555cc8d7b655de8e62bd8af870a74909e6a4b6cec6e3736dd0d')
21 validpgpkeys=('C52048C0C0748FEE227D47A2702353E0F7E48EDB')
24 cd "${srcdir}/${pkgname}${_relver}"
25 patch --forward --strip=1 --input="${srcdir}/CVE-2021-38165.diff"
29 cd "${srcdir}/${pkgname}${_relver}"
30 ./configure --prefix=/usr \
35 --mandir=/usr/share/man
40 cd "${srcdir}/${pkgname}${_relver}"
41 make DESTDIR="${pkgdir}" install
43 # FS#20404 - points to local help
44 sed -i -e "s|^HELPFILE.*$|HELPFILE:file:///usr/share/doc/lynx/lynx_help/lynx_help_main.html|" "${pkgdir}/etc/lynx.cfg"
46 install -d "${pkgdir}/usr/share/doc/lynx"
47 cp -rf lynx_help "${pkgdir}/usr/share/doc/lynx"