1 # Maintainer: Gaetan Bisson <bisson@archlinux.org>
2 # Contributor: dorphell <dorphell@archlinux.org>
5 _gitcommit=30486718c5512fef115b01a235a05dad45d4328c
6 _pkgver=0.5.3.git20220409-1
9 pkgdesc='Text-based Web browser as well as pager'
10 url='https://salsa.debian.org/debian/w3m'
13 makedepends=('git' 'imlib2')
14 optdepends=('imlib2: for graphics support')
15 depends=('openssl' 'gc' 'ncurses' 'gpm')
16 source=("git+https://salsa.debian.org/debian/w3m.git#commit=${_gitcommit}")
19 # There's also the maintainer's github repo, usually in sync with Debian's:
20 # https://github.com/tats/w3m
23 cd "${srcdir}/${pkgname}"
26 --libexecdir=/usr/lib \
27 --enable-image=x11,fb \
28 --with-imagelib=imlib2 \
29 --with-termlib=ncurses \
36 cd "${srcdir}/${pkgname}"
37 make DESTDIR="${pkgdir}" install
39 install -d "${pkgdir}"/usr/share/{doc,licenses}/w3m
40 install -m644 doc/* "${pkgdir}/usr/share/doc/w3m"
41 ln -s ../../doc/w3m/README "${pkgdir}/usr/share/licenses/w3m"