55 lines
1.4 KiB
Bash
55 lines
1.4 KiB
Bash
# Maintainer: Future Linux Team <futurelinux@163.com>
|
|
|
|
pkgname=lynx
|
|
pkgver=2.8.9rel.1
|
|
pkgrel=1
|
|
pkgdesc="A text browser for the World Wide Web"
|
|
arch=('x86_64')
|
|
url="https://lynx.invisible-island.net/"
|
|
license=('GPL-2.0-only')
|
|
depends=('brotli' 'bzip2' 'glibc' 'libidn2' 'ncurses' 'openssl' 'zlib')
|
|
backup=(etc/lynx/lynx.cfg)
|
|
options=('!lto')
|
|
source=(https://invisible-mirror.net/archives/lynx/tarballs/${pkgname}${pkgver}.tar.bz2
|
|
${pkgname}-${pkgver}-security_fix-1.patch)
|
|
sha256sums=(387f193d7792f9cfada14c60b0e5c0bff18f227d9257a39483e14fa1aaf79595
|
|
35c4bd61c8bce6887efeeb0979d39dc65a8ebf9df4433df45362ce7a970f02f6)
|
|
|
|
prepare() {
|
|
cd ${pkgname}${pkgver}
|
|
|
|
patch -Np1 -i ${srcdir}/${pkgname}-${pkgver}-security_fix-1.patch
|
|
}
|
|
|
|
build() {
|
|
cd ${pkgname}${pkgver}
|
|
|
|
${CONFIGURE} \
|
|
--sysconfdir=/etc/lynx \
|
|
--with-zlib \
|
|
--with-bzlib \
|
|
--with-ssl \
|
|
--with-screen=ncursesw \
|
|
--enable-locale-charset \
|
|
--enable-ipv6 \
|
|
--enable-nls \
|
|
--datadir=/usr/share/doc/${pkgname}-${pkgver}
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}${pkgver}
|
|
|
|
make DESTDIR=${pkgdir} install-full
|
|
|
|
chgrp -v -R root ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}/lynx_doc
|
|
|
|
sed -e '/#LOCALE/ a LOCALE_CHARSET:TRUE' \
|
|
-i ${pkgdir}/etc/lynx/lynx.cfg
|
|
sed -e '/#DEFAULT_ED/ a DEFAULT_EDITOR:vi' \
|
|
-i ${pkgdir}/etc/lynx/lynx.cfg
|
|
sed -e '/#PERSIST/ a PERSISTENT_COOKIES:TRUE' \
|
|
-i ${pkgdir}/etc/lynx/lynx.cfg
|
|
}
|