32 lines
955 B
Bash
32 lines
955 B
Bash
# Template file for 'xpdf'
|
|
pkgname=xpdf
|
|
version=4.05
|
|
revision=2
|
|
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 qt5-svg"
|
|
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=92707ed5acb6584fbd73f34091fda91365654ded1f31ba72f0970022cf2a5cea
|
|
|
|
post_extract() {
|
|
vsed -i -e '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
|
|
rm $DESTDIR/usr/bin/pdf*
|
|
rm $DESTDIR/usr/share/man/man1/pdf*
|
|
}
|