void-packages/srcpkgs/xpdf/template
2019-08-10 00:44:58 +02:00

32 lines
983 B
Bash

# Template file for 'xpdf'
pkgname=xpdf
version=4.01.01
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.foolabs.com/xpdf/"
distfiles="https://xpdfreader-dl.s3.amazonaws.com/xpdf-$version.tar.gz"
checksum=ba550c7d3e4f73b1833cfcdcd9dbe39849dd0cd459b6774c4ecdfeca993204a4
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*
}