6 pkgdesc="A viewer for Portable Document Format (PDF) files."
9 depends=('gcc-libs' 'openmotif' 't1lib' 'gsfonts' 'libxt' 'desktop-file-utils')
10 optdepends=('poppler: pdf tools that used to be included in xpdf')
13 url="http://www.foolabs.com/xpdf/"
15 source=(ftp://ftp.foolabs.com/pub/${_pkgname}/${_pkgname}-${_srcver}.tar.gz)
16 md5sums=('af75f772bee0e5ae4a811ff9d03eac5a')
19 cd "${srcdir}/${_pkgname}-${_srcver}"
20 sed -i 's:/usr/share/fonts/type1/gsfonts:/usr/share/fonts/Type1:' xpdf/GlobalParams.cc || return 1
24 --mandir=/usr/share/man \
25 --enable-multithreaded --enable-wordlist \
26 --with-freetype2-library=/usr/lib \
27 --with-freetype2-includes=/usr/include/freetype2 \
28 --with-t1-library=/usr/lib \
29 --with-t1-includes=/usr/include \
30 --x-includes=/usr/include \
31 --with-Xm-library=/usr/lib \
32 --with-Xm-includes=/usr/include || return 1
34 make DESTDIR="${pkgdir}" install
35 for tool in pdffonts pdfimages pdfinfo pdftoppm pdftops pdftotext ; do
36 rm -f "${pkgdir}/usr/bin/${tool}"
37 rm -f "${pkgdir}/usr/share/man/man1/${tool}.1"