summaryrefslogtreecommitdiff
path: root/libre/kdegraphics-okular
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-08-27 23:18:41 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-08-28 00:38:08 -0300
commitac81c495bfe06857aafa76301476e2bd9f5a3ed7 (patch)
tree43266aa441fc92e56ab493a6c950b36c527fc1c6 /libre/kdegraphics-okular
parent096163ae22c3ad1195124509a3f08dc5c5e84d86 (diff)
downloadabslibre-ac81c495bfe06857aafa76301476e2bd9f5a3ed7.tar.gz
abslibre-ac81c495bfe06857aafa76301476e2bd9f5a3ed7.tar.bz2
abslibre-ac81c495bfe06857aafa76301476e2bd9f5a3ed7.zip
kdegraphics-okular: add new package to [libre] - Bug #1067 -> https://labs.parabola.nu/issues/1067
Diffstat (limited to 'libre/kdegraphics-okular')
-rw-r--r--libre/kdegraphics-okular/PKGBUILD43
-rw-r--r--libre/kdegraphics-okular/turn_off_copy-protection_anti-feature.patch13
2 files changed, 56 insertions, 0 deletions
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 <felixonmars@archlinux.org>
+# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+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 @@
+ </group>
+ <group name="Core General" >
+ <entry key="ObeyDRM" type="Bool" >
+- <default>true</default>
++ <default>false</default>
+ </entry>
+ <entry key="ChooseGenerators" type="Bool" >
+ <default>false</default>