summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD58
-rw-r--r--fix-gcc10-build.patch12
3 files changed, 53 insertions, 49 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cf771f0e48e..f145a781d0d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,31 +1,25 @@
-# Generated by mksrcinfo v8
-# Sun Nov 20 18:42:50 UTC 2016
pkgbase = qpdfview
pkgdesc = A tabbed PDF viewer using the poppler library.
- pkgver = 0.4.17beta1
+ pkgver = 0.4.18
pkgrel = 2
url = https://launchpad.net/qpdfview
- arch = i686
arch = x86_64
- arch = armv7h
license = GPL2
makedepends = qt5-tools
+ makedepends = libspectre
+ makedepends = djvulibre
depends = libcups
+ depends = libsynctex
depends = poppler-qt5
depends = qt5-svg
- depends = desktop-file-utils
- depends = hicolor-icon-theme
- optdepends = texlive-bin: for shared SyncTeX parser library (required at build time)
- optdepends = libspectre: for PostScript support (required at build time)
- optdepends = djvulibre: for DjVu support (required at build time)
- source = https://launchpad.net/qpdfview/trunk/0.4.17beta1/+download/qpdfview-0.4.17beta1.tar.gz
- sha256sums = 60206c5f76410a35098e3c965552cec08cd85941776ea6f6b207d7ea63ce940f
+ optdepends = libspectre: for PostScript support
+ optdepends = djvulibre: for DjVu support
+ source = https://launchpad.net/qpdfview/trunk/0.4.18/+download/qpdfview-0.4.18.tar.gz
+ source = https://launchpad.net/qpdfview/trunk/0.4.18/+download/qpdfview-0.4.18.tar.gz.asc
+ source = fix-gcc10-build.patch
+ validpgpkeys = 1F521FF0F87E9E1CDE46B8A9F4928C4DD24D4DF8
+ sha256sums = cc642e7fa74029373ca9b9fbc29adc4883f8b455130a78ad54746d6844a0396c
+ sha256sums = SKIP
+ sha256sums = 5314091e35031f5ebf38a827b64e524e2f5dab8a5c2d3c0e081fb7a634ebe301
pkgname = qpdfview
- depends = libcups
- depends = poppler-qt5
- depends = qt5-svg
- depends = desktop-file-utils
- depends = hicolor-icon-theme
- depends = texlive-bin
-
diff --git a/PKGBUILD b/PKGBUILD
index cb5ee78a622..1cdb268dfe4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,43 +1,41 @@
-# Maintainer: Adam Reichold <adam.reichold@t-online.de>
+# Maintainer: Alad Wenter <alad@mailbox.org>
+# Contributor: Adam Reichold <adam.reichold@t-online.de>
pkgname=qpdfview
-pkgver=0.4.17beta1
+pkgver=0.4.18
pkgrel=2
pkgdesc='A tabbed PDF viewer using the poppler library.'
-arch=('i686' 'x86_64' 'armv7h')
url='https://launchpad.net/qpdfview'
+arch=('x86_64')
license=('GPL2')
-depends=('libcups' 'poppler-qt5' 'qt5-svg' 'desktop-file-utils' 'hicolor-icon-theme')
-optdepends=('texlive-bin: for shared SyncTeX parser library (required at build time)'
- 'libspectre: for PostScript support (required at build time)'
- 'djvulibre: for DjVu support (required at build time)')
-makedepends=('qt5-tools')
-source=("https://launchpad.net/$pkgname/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz")
-sha256sums=('60206c5f76410a35098e3c965552cec08cd85941776ea6f6b207d7ea63ce940f')
+depends=('libcups' 'libsynctex' 'poppler-qt5' 'qt5-svg')
+makedepends=('qt5-tools' 'libspectre' 'djvulibre')
+optdepends=('libspectre: for PostScript support'
+ 'djvulibre: for DjVu support')
+source=("https://launchpad.net/qpdfview/trunk/$pkgver/+download/qpdfview-$pkgver.tar.gz"
+ "https://launchpad.net/qpdfview/trunk/$pkgver/+download/qpdfview-$pkgver.tar.gz.asc"
+ fix-gcc10-build.patch)
+sha256sums=('cc642e7fa74029373ca9b9fbc29adc4883f8b455130a78ad54746d6844a0396c'
+ 'SKIP'
+ '5314091e35031f5ebf38a827b64e524e2f5dab8a5c2d3c0e081fb7a634ebe301')
+# Adam Reichold <adam.reichold@t-online.de>
+validpgpkeys=('1F521FF0F87E9E1CDE46B8A9F4928C4DD24D4DF8')
-build() {
- cd "$srcdir/$pkgname-$pkgver"
-
- if ! pkg-config --exists libspectre; then
- local config="$config without_ps"
- fi
-
- if ! pkg-config --exists ddjvuapi; then
- local config="$config without_djvu"
- fi
+prepare() {
+ cd $pkgname-$pkgver
+ sed -e 's|2.0.0|1.21.0|' -i application.pro
+ patch -Np1 < ../fix-gcc10-build.patch
+}
- lrelease-qt5 qpdfview.pro
- qmake-qt5 "CONFIG+=$config" qpdfview.pro
- make
+build() {
+ cd $pkgname-$pkgver
+ lrelease-qt5 qpdfview.pro
+ qmake-qt5 qpdfview.pro
+ make
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
-
- make "INSTALL_ROOT=$pkgdir" install
-
- if pkg-config --exists synctex; then
- depends=("${depends[@]}" 'texlive-bin')
- fi
+ cd $pkgname-$pkgver
+ make INSTALL_ROOT="$pkgdir" install
}
diff --git a/fix-gcc10-build.patch b/fix-gcc10-build.patch
new file mode 100644
index 00000000000..94b6dce3ac2
--- /dev/null
+++ b/fix-gcc10-build.patch
@@ -0,0 +1,12 @@
+diff --git a/sources/model.h b/sources/model.h
+index 6363c32..dc10a8c 100644
+--- a/sources/model.h
++++ b/sources/model.h
+@@ -27,6 +27,7 @@ along with qpdfview. If not, see <http://www.gnu.org/licenses/>.
+ #include <QtPlugin>
+ #include <QWidget>
+ #include <QVector>
++#include <QPainterPath>
+
+ class QAbstractItemModel;
+ class QColor;