desktop/lynx/PKGBUILD
2014-02-17 17:38:45 +00:00

40 lines
1.1 KiB
Bash

# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
# Contributions from Arch: https://www.archlinux.org/packages/testing/x86_64/lynx/
pkgname=lynx
pkgver=2.8.8
pkgrel=1
pkgdesc="A text browser for the World Wide Web"
url="http://lynx.isc.org/"
arch=(x86_64)
license=('GPL')
depends=('ncurses' 'openssl')
source=(http://lynx.isc.org/release/${pkgname}${pkgver}.tar.gz)
url="http://lynx.isc.org"
backup=('etc/lynx.cfg')
screenshot=('http://upload.wikimedia.org/wikipedia/commons/d/d5/Lynx-wikipedia.png')
md5sums=('9080a92bf5bc16cf13bd0bfd787bf35f')
build() {
cd ${srcdir}/${pkgname}2-8-8
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-ssl \
--enable-nls \
--mandir=/usr/share/man
make
}
package() {
cd ${srcdir}/${pkgname}2-8-8
make DESTDIR=$pkgdir install
# Fix bug https://bugs.archlinux.org/task/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
}