32 lines
953 B
Bash
32 lines
953 B
Bash
# Template file for 'xpdf'
|
|
pkgname=xpdf
|
|
version=4.04
|
|
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=63ce23fcbf76048f524c40be479ac3840d7a2cbadb6d1e0646ea77926656bade
|
|
|
|
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-utils
|
|
rm $DESTDIR/usr/bin/pdf*
|
|
rm $DESTDIR/usr/share/man/man1/pdf*
|
|
}
|