From ac81c495bfe06857aafa76301476e2bd9f5a3ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Sat, 27 Aug 2016 23:18:41 -0300 Subject: kdegraphics-okular: add new package to [libre] - Bug #1067 -> https://labs.parabola.nu/issues/1067 --- libre/kdegraphics-okular/PKGBUILD | 43 ++++++++++++++++++++++ .../turn_off_copy-protection_anti-feature.patch | 13 +++++++ 2 files changed, 56 insertions(+) create mode 100644 libre/kdegraphics-okular/PKGBUILD create mode 100644 libre/kdegraphics-okular/turn_off_copy-protection_anti-feature.patch (limited to 'libre/kdegraphics-okular') diff --git a/libre/kdegraphics-okular/PKGBUILD b/libre/kdegraphics-okular/PKGBUILD new file mode 100644 index 000000000..01a4718e9 --- /dev/null +++ b/libre/kdegraphics-okular/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: PKGBUILD 274388 2016-08-21 03:30:09Z felixonmars $ +# Maintainer (Arch): Felix Yan +# Contributor (Arch): Andrea Scarpino +# Maintainer: André Silva + +pkgname=kdegraphics-okular +pkgver=16.08.0 +pkgrel=1.parabola1 +pkgdesc='Document Viewer, with copy-protection anti-feature turn off by default' +arch=('i686' 'x86_64' 'armv7h') +url="http://kde.org/applications/graphics/okular/" +license=('GPL' 'LGPL' 'FDL') +groups=('kde-applications' 'kdegraphics') +depends=('kdebase-runtime' 'qimageblitz' 'chmlib' 'djvulibre' 'libspectre' + 'libkexiv2_4' 'poppler-qt4' 'libkscreen4') +makedepends=('cmake' 'automoc4' 'ebook-tools' 'kdegraphics-mobipocket') +optdepends=('ebook-tools: mobi and epub support' + 'kdegraphics-mobipocket: mobi support') +source=("http://download.kde.org/stable/applications/${pkgver}/src/okular-${pkgver}.tar.xz" + 'turn_off_copy-protection_anti-feature.patch') +sha1sums=('3577dd2f6c61144769deec34448a50ddb24c2354' + 'f7323d1d39d660785fa71c0365a17795008db819') + +prepare() { + mkdir -p build + cd okular-${pkgver} + patch -p1 -i ../turn_off_copy-protection_anti-feature.patch +} + +build() { + cd build + cmake ../okular-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE4_BUILD_TESTS=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DWITH_ActiveApp=OFF + make +} + +package() { + cd build + make DESTDIR="${pkgdir}" install +} diff --git a/libre/kdegraphics-okular/turn_off_copy-protection_anti-feature.patch b/libre/kdegraphics-okular/turn_off_copy-protection_anti-feature.patch new file mode 100644 index 000000000..ebc801a6a --- /dev/null +++ b/libre/kdegraphics-okular/turn_off_copy-protection_anti-feature.patch @@ -0,0 +1,13 @@ +diff --git a/conf/okular_core.kcfg b/conf/okular_core.kcfg +index 35aaa9d..7593409 100644 +--- a/conf/okular_core.kcfg ++++ b/conf/okular_core.kcfg +@@ -59,7 +59,7 @@ + + + +- true ++ false + + + false -- cgit v1.2.2