archrelease: copy trunk to extra-x86_64
[arch-packages.git] / lynx / trunk / PKGBUILD
blob92b1afb5a22dce6cbd4550c8ecc8e8b304129803
1 # Maintainer: Pierre Schmitz <pierre@archlinux.de>
2 # Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
5 pkgname=lynx
6 pkgver=2.8.9
7 _relver=${pkgver}rel.1
8 pkgrel=6
9 pkgdesc="A text browser for the World Wide Web"
10 url="https://lynx.invisible-island.net/"
11 arch=('x86_64')
12 license=('GPL')
13 depends=('openssl' 'libidn' 'ncurses')
14 backup=('etc/lynx.cfg')
15 options=('!lto')
16 source=("https://invisible-mirror.net/archives/lynx/tarballs/${pkgname}${_relver}.tar.bz2"{,.asc}
17         'CVE-2021-38165.diff')
18 sha256sums=('387f193d7792f9cfada14c60b0e5c0bff18f227d9257a39483e14fa1aaf79595'
19             'SKIP'
20             '693f025a6886b555cc8d7b655de8e62bd8af870a74909e6a4b6cec6e3736dd0d')
21 validpgpkeys=('C52048C0C0748FEE227D47A2702353E0F7E48EDB')
23 prepare() {
24   cd "${srcdir}/${pkgname}${_relver}"
25   patch --forward --strip=1 --input="${srcdir}/CVE-2021-38165.diff"
28 build() {
29   cd "${srcdir}/${pkgname}${_relver}"
30   ./configure --prefix=/usr \
31     --sysconfdir=/etc \
32     --with-ssl=/usr \
33     --enable-nls \
34     --enable-ipv6 \
35     --mandir=/usr/share/man
36   make
39 package() {
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"