void-packages/srcpkgs/xpdf/template
2018-01-15 23:28:21 +01:00

30 lines
1.1 KiB
Bash

# Template file for 'xpdf'
pkgname=xpdf
version=3.04
revision=1
patch_args="-Np1"
build_style=gnu-configure
configure_args="--enable-multithreaded
--with-freetype2-library=${XBPS_CROSS_BASE}/usr/lib
--with-freetype2-includes=${XBPS_CROSS_BASE}/usr/include/freetype2
--x-includes=${XBPS_CROSS_BASE}/usr/include"
conf_files="/etc/xpdfrc"
makedepends="lesstif-devel libpaper-devel libXt-devel libXpm-devel libXp-devel freetype-devel"
depends="gsfonts"
short_desc="Viewer for Portable Document Format (PDF) files"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://www.foolabs.com/xpdf/"
distfiles="https://xpdfreader-dl.s3.amazonaws.com/old/xpdf-$version.tar.gz"
checksum=11390c74733abcb262aaca4db68710f13ffffd42bfe2a0861a5dfc912b2977e5
post_extract() {
sed -i 's:/usr/share/fonts/type1/gsfonts:/usr/share/fonts/Type1:' xpdf/GlobalParams.cc
sed -i 's:times-medium-r-normal--16:times-medium-r-normal--14:' xpdf/XPDFViewer.cc
}
post_install() {
# already in poppler-utils
rm $DESTDIR/usr/bin/pdf*
rm $DESTDIR/usr/share/man/man1/pdf*
}