33 lines
967 B
Bash
33 lines
967 B
Bash
# Template file for 'xpdf'
|
|
pkgname=xpdf
|
|
version=4.03
|
|
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://dl.xpdfreader.com/xpdf-${version}.tar.gz"
|
|
checksum=0fe4274374c330feaadcebb7bd7700cb91203e153b26aa95952f02bf130be846
|
|
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*
|
|
}
|