blob: b5ca8566223af79f82ee548bf2358dd10213e28c (
plain)
1 # Description: PDF viewer
2 # URL: https://launchpad.net/qpdfview
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: poppler-qt5
5
6 name=qpdfview
7 version=0.4.18
8 release=2
9 source=(https://launchpad.net/qpdfview/trunk/$version/+download/$name-$version.tar.gz
10 qt5-5.15.diff)
11
12 build () {
13 cd $name-$version
14
15 patch -p0 -i $SRC/qt5-5.15.diff
16
17 local OPTS
18 pkginfo -i | grep -q '^cups ' || OPTS+='without_cups '
19 pkginfo -i | grep -q '^libspectre ' || OPTS+='without_ps '
20 pkginfo -i | grep -q '^djvulibre ' || OPTS+='without_djvu '
21
22 qmake-qt5 qpdfview.pro \
23 MANUAL_INSTALL_PATH=/usr/share/man/man1 \
24 CONFIG+="$OPTS"
25
26 make
27 make INSTALL_ROOT=$PKG install
28
29 rm $PKG/usr/share/qpdfview/help_*.html
30 }
|