void-packages/srcpkgs/xpdf/template
Đoàn Trần Công Danh 9978e00086 srcpkgs: remove patch_args=-Np1 en-mass
git grep -l '^patch_args=.*p1' 'srcpkgs/*/template'  |
	xargs -r sed -i '/^patch_args=/d'
2021-06-20 13:17:29 +07:00

31 lines
949 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
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*
}