OCaml 4.14.0 rebuild
[arch-packages.git] / links / trunk / PKGBUILD
blob13cbcc10af03efe5e15673c0e10a2be3d4aac15f
1 # Maintainer: Christian Hesse <mail@eworm.de>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
4 pkgname=links
5 pkgver=2.27
6 pkgrel=1
7 pkgdesc='A text WWW browser, similar to Lynx'
8 arch=('x86_64')
9 url='http://links.twibright.com/'
10 license=('GPL')
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')
18 options=('debug')
19 source=("http://links.twibright.com/download/${pkgname}-${pkgver}.tar.bz2"
20         'links.desktop')
21 sha256sums=('d8ddcbfcede7cdde80abeb0a236358f57fa6beb2bcf92e109624e9b896f9ebb4'
22             'f96bf2638e9c309bfdb857bd62a732b980231b3a683cd585ec872b249c2c1b19')
24 configure_options=(
25   --prefix=/usr
26   --mandir=/usr/share/man
27   --disable-javascript
30 prepare() {
31   cd ${pkgname}-${pkgver}
32   sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" configure
35 build() {
36   cd ${pkgname}-${pkgver}
37   (cd intl; ./gen-intl; ./synclang)
38   ./configure \
39     "${configure_options[@]}" \
40     --enable-graphics \
41     --with-x \
42     --with-fb
43   make
44   mv links xlinks
46   ./configure \
47     "${configure_options[@]}" \
48     --disable-graphics \
49     --without-x \
50     --without-fb
51   make
54 package() {
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/"