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' 'pcre' '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')
19 source=("http://links.twibright.com/download/${pkgname}-${pkgver}.tar.bz2"
21 sha256sums=('d8ddcbfcede7cdde80abeb0a236358f57fa6beb2bcf92e109624e9b896f9ebb4'
22 'f96bf2638e9c309bfdb857bd62a732b980231b3a683cd585ec872b249c2c1b19')
26 --mandir=/usr/share/man
31 cd ${pkgname}-${pkgver}
32 sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" configure
36 cd ${pkgname}-${pkgver}
37 (cd intl; ./gen-intl; ./synclang)
39 "${configure_options[@]}" \
47 "${configure_options[@]}" \
55 cd ${pkgname}-${pkgver}
56 make DESTDIR="${pkgdir}" install
58 install -D -m0755 xlinks "${pkgdir}/usr/bin/xlinks"
59 ln -s links.1.gz "${pkgdir}/usr/share/man/man1/xlinks.1.gz"
61 install -D -m0644 "${srcdir}/links.desktop" "${pkgdir}/usr/share/applications/links.desktop"
62 install -d "${pkgdir}/usr/share/pixmaps"
63 install -m0644 links_16x16_1.xpm links_16x16_2.xpm links_32x32.xpm links-48x48.xpm "${pkgdir}/usr/share/pixmaps/"
65 install -d "${pkgdir}/usr/share/doc/links/calibration"
66 install -m0644 doc/links_cal/* "${pkgdir}/usr/share/doc/links/calibration/"