desktop/lynx/PKGBUILD

40 lines
1.1 KiB
Bash
Raw Normal View History

2012-06-05 05:58:14 +08:00
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
2014-02-18 01:38:45 +08:00
# Contributions from Arch: https://www.archlinux.org/packages/testing/x86_64/lynx/
2012-06-05 05:58:14 +08:00
pkgname=lynx
2014-02-18 01:38:45 +08:00
pkgver=2.8.8
pkgrel=1
2012-06-05 05:58:14 +08:00
pkgdesc="A text browser for the World Wide Web"
url="http://lynx.isc.org/"
2014-02-18 01:38:45 +08:00
arch=(x86_64)
2012-06-05 05:58:14 +08:00
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')
2014-02-18 01:38:45 +08:00
md5sums=('9080a92bf5bc16cf13bd0bfd787bf35f')
2012-06-05 05:58:14 +08:00
build() {
2014-02-18 01:38:45 +08:00
cd ${srcdir}/${pkgname}2-8-8
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-ssl \
--enable-nls \
--mandir=/usr/share/man
2012-06-05 05:58:14 +08:00
make
}
package() {
2014-02-18 01:38:45 +08:00
cd ${srcdir}/${pkgname}2-8-8
make DESTDIR=$pkgdir install
2014-02-18 01:38:45 +08:00
# 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
2012-06-05 05:58:14 +08:00
}