opt/qpdfview/Pkgfile

31 lines
778 B
Plaintext
Raw Normal View History

2015-09-24 13:28:31 +02:00
# Description: PDF viewer
# URL: https://launchpad.net/qpdfview
# Maintainer: Juergen Daubert, jue at crux dot nu
2017-01-01 13:45:27 +01:00
# Depends on: poppler-qt5
2015-09-24 13:28:31 +02:00
name=qpdfview
2019-07-26 15:45:49 +02:00
version=0.4.18
release=2
source=(https://launchpad.net/qpdfview/trunk/$version/+download/$name-$version.tar.gz
qt5-5.15.diff)
2015-09-24 13:28:31 +02:00
build () {
cd $name-$version
patch -p0 -i $SRC/qt5-5.15.diff
local OPTS
pkginfo -i | grep -q '^cups ' || OPTS+='without_cups '
pkginfo -i | grep -q '^libspectre ' || OPTS+='without_ps '
pkginfo -i | grep -q '^djvulibre ' || OPTS+='without_djvu '
2017-01-01 13:45:27 +01:00
qmake-qt5 qpdfview.pro \
2015-09-24 13:28:31 +02:00
MANUAL_INSTALL_PATH=/usr/share/man/man1 \
CONFIG+="$OPTS"
2015-09-24 13:28:31 +02:00
make
make INSTALL_ROOT=$PKG install
rm $PKG/usr/share/qpdfview/help_*.html
}