void-packages/srcpkgs/xpdf/template
2019-10-01 15:43:36 +02:00

32 lines
978 B
Bash

# Template file for 'xpdf'
pkgname=xpdf
version=4.02
revision=1
build_style=cmake
configure_args="-DSYSTEM_XPDFRC=/etc/xpdfrc"
conf_files="/etc/xpdfrc"
hostmakedepends="qt5-host-tools qt5-qmake"
makedepends="freetype-devel qt5-devel libpaper-devel zlib-devel libpng-devel cups-devel"
depends="gsfonts"
short_desc="Viewer for Portable Document Format (PDF) files"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later, GPL-3.0-or-later"
homepage="http://www.xpdfreader.com/"
distfiles="https://xpdfreader-dl.s3.amazonaws.com/xpdf-$version.tar.gz"
checksum=52d51dc943b9614b8da66e8662b3031a3c82dc25bfc792eac6b438aa36d549a4
patch_args="-Np1"
post_extract() {
sed -i 's:/usr/share/fonts/type1/gsfonts:/usr/share/fonts/Type1:' xpdf/GlobalParams.cc
}
post_install() {
vdoc CHANGES
vdoc README
# copy sample xpdfrc
vmkdir etc
vinstall doc/sample-xpdfrc 644 etc xpdfrc
# already in poppler-utils
rm $DESTDIR/usr/bin/pdf*
rm $DESTDIR/usr/share/man/man1/pdf*
}