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
|
2020-07-03 13:26:46 +02:00
|
|
|
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
|
|
|
|
|
2020-07-03 13:26:46 +02:00
|
|
|
patch -p0 -i $SRC/qt5-5.15.diff
|
|
|
|
|
2017-11-06 13:21:08 +01:00
|
|
|
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 \
|
2017-11-06 13:21:08 +01:00
|
|
|
CONFIG+="$OPTS"
|
2015-09-24 13:28:31 +02:00
|
|
|
|
|
|
|
make
|
|
|
|
make INSTALL_ROOT=$PKG install
|
|
|
|
|
|
|
|
rm $PKG/usr/share/qpdfview/help_*.html
|
|
|
|
}
|