summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d16fa1521933d65b6813bf0ba9c796ce0f29ba93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Maintainer: Christian Hesse <mail@eworm.de>
# Contributor: Eric BĂ©langer <eric@archlinux.org>
# AUR Maintainer: Joaquin "ShyanJMC" Crespo <joaquincrespo96@gmail.com>

pkgname=links-minimal
pkgver=2.23
pkgrel=1
pkgdesc="A text WWW browser, similar to Lynx. This version is very minimal with the lowest features as possible."
arch=('x86_64')
url="http://links.twibright.com/"
license=('GPL')
depends=('bzip2' 'gpm' 'libevent' 'pcre' 'xz')
makedepends=('libtiff' 'libxt')
source=("http://links.twibright.com/download/links-${pkgver}.tar.bz2")
sha256sums=('6660d202f521fd18bf5184c3f1732d1fa7426a103374277ad1cdb8e57ce6ac45')

configure_options=(
  --prefix=/usr
  --mandir=/usr/share/man
  --disable-javascript
)

prepare() {
  cd links-${pkgver}
  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" configure
}

build() {
  cd links-${pkgver}
  (cd intl; ./gen-intl; ./synclang)

  ./configure \
    "${configure_options[@]}" \
    --disable-graphics \
    --without-x \
    --without-fb \
    --without-librsvg \
    --without-libjpeg \
    --without-grx \
    --without-haiku \
    --without-atheos \
    --without-windows \
    --without-pmshell \
    --without-directfb \
    --without-svgalib \
    --without-openmp \
    --without-lzip \
    --without-lzma \
    --without-bzip2 \
    --without-zstd \
    --without-brotli \
    --without-zlib \
    --without-gpm

  make
}

package() {
  cd links-${pkgver}
  make DESTDIR="${pkgdir}" install

  install -d "${pkgdir}/usr/share/pixmaps"
  install -m0644 links_16x16_1.xpm links_16x16_2.xpm links_32x32.xpm links-48x48.xpm "${pkgdir}/usr/share/pixmaps/"

  install -d "${pkgdir}/usr/share/doc/links/calibration"
  install -m0644 doc/links_cal/* "${pkgdir}/usr/share/doc/links/calibration/"
}