1 # Maintainer: Christian Hesse <mail@eworm.de>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
7 pkgdesc='A text WWW browser, similar to Lynx'
9 url='http://links.twibright.com/'
11 depends=('brotli' 'libbrotlidec.so' 'bzip2' 'libbz2.so' 'gpm' 'libgpm.so'
12 'libevent' 'openssl' 'xz' 'zstd' 'libzstd.so')
13 makedepends=('libtiff' 'libpng' 'libxt' 'librsvg')
14 optdepends=('libx11: for using xlinks'
15 'libtiff: for using xlinks'
16 'libpng: for using xlinks'
17 'librsvg: for using xlinks')
18 source=("http://links.twibright.com/download/${pkgname}-${pkgver}.tar.bz2"
20 sha256sums=('22aa96c0b38e1a6f8f7ed9d7a4167a47fc37246097759ef6059ecf8f9ead7998'
21 'f96bf2638e9c309bfdb857bd62a732b980231b3a683cd585ec872b249c2c1b19')
25 --mandir=/usr/share/man
30 cd ${pkgname}-${pkgver}
31 sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" configure
35 cd ${pkgname}-${pkgver}
36 (cd intl; ./gen-intl; ./synclang)
38 "${configure_options[@]}" \
46 "${configure_options[@]}" \
54 cd ${pkgname}-${pkgver}
55 make DESTDIR="${pkgdir}" install
57 install -D -m0755 xlinks "${pkgdir}/usr/bin/xlinks"
58 ln -s links.1.gz "${pkgdir}/usr/share/man/man1/xlinks.1.gz"
60 install -D -m0644 "${srcdir}/links.desktop" "${pkgdir}/usr/share/applications/links.desktop"
61 install -d "${pkgdir}/usr/share/pixmaps"
62 install -m0644 links_16x16_1.xpm links_16x16_2.xpm links_32x32.xpm links-48x48.xpm "${pkgdir}/usr/share/pixmaps/"
64 install -d "${pkgdir}/usr/share/doc/links/calibration"
65 install -m0644 doc/links_cal/* "${pkgdir}/usr/share/doc/links/calibration/"