mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
60 lines
2.7 KiB
Bash
60 lines
2.7 KiB
Bash
|
# $Id: PKGBUILD 39738 2009-05-21 10:38:59Z jgc $
|
||
|
# Maintainer: tobias <tobias@archlinux.org>
|
||
|
# Contributor Sarah Hay <sarahhay@mb.sympatico.ca>
|
||
|
|
||
|
pkgname=xpdf
|
||
|
_srcver=3.02
|
||
|
_patchlevel=pl3
|
||
|
pkgver=${_srcver}_${_patchlevel}
|
||
|
pkgrel=1
|
||
|
pkgdesc="Xpdf is a viewer for Portable Document Format (PDF) files."
|
||
|
arch=(i686 x86_64)
|
||
|
license=('GPL')
|
||
|
depends=('gcc-libs>=4.3.2' 'lesstif' 't1lib' 'gsfonts' 'desktop-file-utils')
|
||
|
optdepends=('poppler: pdf tools that used to be included in xpdf')
|
||
|
backup=(etc/xpdfrc)
|
||
|
url="http://www.foolabs.com/xpdf/"
|
||
|
options=('force')
|
||
|
install=xpdf.install
|
||
|
source=(ftp://ftp.foolabs.com/pub/${pkgname}/${pkgname}-${_srcver}.tar.gz
|
||
|
ftp://ftp.foolabs.com/pub/${pkgname}/${pkgname}-${_srcver}pl1.patch
|
||
|
ftp://ftp.foolabs.com/pub/${pkgname}/${pkgname}-${_srcver}pl2.patch
|
||
|
ftp://ftp.foolabs.com/pub/${pkgname}/${pkgname}-${_srcver}${_patchlevel}.patch
|
||
|
xpdf.desktop)
|
||
|
md5sums=('599dc4cc65a07ee868cf92a667a913d2'
|
||
|
'877118786dfe27d1b7aa5a6759cc6e45'
|
||
|
'3a5cb165ae66781e0b21e6219ae06795'
|
||
|
'581963ede0fb5715e1a69f01b5b8ce63'
|
||
|
'93b9df5ebef3bc56133236ef3f176bb7')
|
||
|
|
||
|
build() {
|
||
|
cd "${srcdir}/${pkgname}-${_srcver}"
|
||
|
patch -Np1 -i "${srcdir}/${pkgname}-${_srcver}pl1.patch" || return 1
|
||
|
patch -Np1 -i "${srcdir}/${pkgname}-${_srcver}pl2.patch" || return 1
|
||
|
patch -Np1 -i "${srcdir}/${pkgname}-${_srcver}${_patchlevel}.patch" || return 1
|
||
|
sed -i 's:/usr/share/fonts/type1/gsfonts:/usr/share/fonts/Type1:' xpdf/GlobalParams.cc || return 1
|
||
|
./configure \
|
||
|
--prefix=/usr \
|
||
|
--sysconfdir=/etc \
|
||
|
--mandir=/usr/share/man \
|
||
|
--enable-multithreaded --enable-wordlist \
|
||
|
--with-freetype2-library=/usr/lib \
|
||
|
--with-freetype2-includes=/usr/include/freetype2 \
|
||
|
--with-t1-library=/usr/lib \
|
||
|
--with-t1-includes=/usr/include \
|
||
|
--x-includes=/usr/include \
|
||
|
--with-Xm-library=/usr/lib \
|
||
|
--with-Xm-includes=/usr/include || return 1
|
||
|
make || return 1
|
||
|
make DESTDIR="${pkgdir}" install
|
||
|
# remove some libs and manpages provided by poppler now
|
||
|
for tool in pdffonts pdfimages pdfinfo pdftoppm pdftops pdftotext ; do
|
||
|
rm -f "${pkgdir}/usr/bin/${tool}"
|
||
|
rm -f "${pkgdir}/usr/share/man/man1/${tool}.1"
|
||
|
done
|
||
|
install -m755 -d ${pkgdir}/usr/share/applications
|
||
|
install -m644 "${srcdir}/xpdf.desktop" "${pkgdir}/usr/share/applications/" || return 1
|
||
|
install -m755 -d ${pkgdir}/usr/share/pixmaps
|
||
|
install -m644 xpdf/xpdfIcon.xpm ${pkgdir}/usr/share/pixmaps/xpdf.xpm || return 1
|
||
|
}
|