Date: Saturday, March 4, 2023 @ 12:44:19
  Author: antiz
Revision: 1412123

archrelease: copy trunk to community-testing-x86_64

Added:
  zathura-pdf-mupdf/repos/community-testing-x86_64/
  
zathura-pdf-mupdf/repos/community-testing-x86_64/0001-Remove-mupdf-linking-detection.patch
    (from rev 1412122, 
zathura-pdf-mupdf/trunk/0001-Remove-mupdf-linking-detection.patch)
  zathura-pdf-mupdf/repos/community-testing-x86_64/PKGBUILD
    (from rev 1412122, zathura-pdf-mupdf/trunk/PKGBUILD)

-------------------------------------------+
 0001-Remove-mupdf-linking-detection.patch |   76 ++++++++++++++++++++++++++++
 PKGBUILD                                  |   41 +++++++++++++++
 2 files changed, 117 insertions(+)

Copied: 
zathura-pdf-mupdf/repos/community-testing-x86_64/0001-Remove-mupdf-linking-detection.patch
 (from rev 1412122, 
zathura-pdf-mupdf/trunk/0001-Remove-mupdf-linking-detection.patch)
===================================================================
--- community-testing-x86_64/0001-Remove-mupdf-linking-detection.patch          
                (rev 0)
+++ community-testing-x86_64/0001-Remove-mupdf-linking-detection.patch  
2023-03-04 12:44:19 UTC (rev 1412123)
@@ -0,0 +1,76 @@
+From e91e5ad64d20eb4a7df377effc12ec21ba6f5f7c Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= <[email protected]>
+Date: Fri, 18 Mar 2022 00:02:43 +0100
+Subject: [PATCH] Remove mupdf linking detection
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Johannes Löthberg <[email protected]>
+---
+ meson.build | 40 ++++++++++++++--------------------------
+ 1 file changed, 14 insertions(+), 26 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index c8c19dc..8174431 100644
+--- a/meson.build
++++ b/meson.build
+@@ -19,8 +19,6 @@ zathura = dependency('zathura', version: '>=0.3.9')
+ girara = dependency('girara-gtk3')
+ glib = dependency('glib-2.0')
+ cairo = dependency('cairo')
+-mupdf = dependency('mupdf', required: false)
+-mupdfthird = cc.find_library('mupdf-third')
+ 
+ build_dependencies = [
+   zathura,
+@@ -29,32 +27,22 @@ build_dependencies = [
+   cairo,
+ ]
+ 
+-if not mupdf.found()
+-  # normal build of mupdf
+-  mupdf = cc.find_library('mupdf')
+-  build_dependencies += [mupdf, mupdfthird]
+-else
+-  # build from Debian's libmupdf-dev
+-  build_dependencies += [mupdf, mupdfthird]
++mupdf = cc.find_library('mupdf')
++mupdfthird = cc.find_library('mupdf-third')
+ 
+-  libjpeg = dependency('libjpeg')
+-  libjbig2dec = cc.find_library('jbig2dec')
+-  libopenjp2 = dependency('libopenjp2')
+-  gumbo = dependency('gumbo')
+-  tesseract = dependency('tesseract')
+-  leptonica = dependency('lept')
+-  mujs = dependency('mujs')
++libjpeg = dependency('libjpeg')
++libjbig2dec = cc.find_library('jbig2dec')
++libopenjp2 = dependency('libopenjp2')
++gumbo = dependency('gumbo')
+ 
+-  build_dependencies += [
+-    libjpeg,
+-    libjbig2dec,
+-    libopenjp2,
+-    gumbo,
+-    tesseract,
+-    leptonica,
+-    mujs
+-  ]
+-endif
++build_dependencies += [
++  mupdf,
++  mupdfthird,
++  libjpeg,
++  libjbig2dec,
++  libopenjp2,
++  gumbo,
++]
+ 
+ if get_option('plugindir') == ''
+   plugindir = zathura.get_pkgconfig_variable('plugindir')
+-- 
+2.35.1
+

Copied: zathura-pdf-mupdf/repos/community-testing-x86_64/PKGBUILD (from rev 
1412122, zathura-pdf-mupdf/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2023-03-04 12:44:19 UTC (rev 1412123)
@@ -0,0 +1,41 @@
+# Maintainer: Johannes Löthberg <[email protected]>
+# Maintainer: Robin Candau <[email protected]>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Sergej Pupykin <[email protected]>
+# Contributor: Moritz Lipp <[email protected]>
+
+pkgname=zathura-pdf-mupdf
+pkgver=0.4.0
+pkgrel=1
+
+pkgdesc="PDF support for Zathura (MuPDF backend) (Supports PDF, ePub, and 
OpenXPS)"
+url="https://pwmt.org/projects/zathura-pdf-mupdf/";
+arch=('x86_64')
+license=('zlib')
+
+conflicts=('zathura-pdf-poppler')
+
+depends=('cairo' 'gumbo-parser' 'jbig2dec' 'libjpeg' 'openjpeg2' 'openssl' 
'zathura')
+makedepends=('libmupdf' 'meson' 'ninja' 'git')
+
+source=(zathura-pdf-mupdf-$pkgver.tar.gz::https://pwmt.org/projects/zathura-pdf-mupdf/download/zathura-pdf-mupdf-$pkgver.tar.xz
+        0001-Remove-mupdf-linking-detection.patch)
+
+sha256sums=('8c1c575678a1cd45b007bdf12328527f0aef6184103e0965459a4202e9ee925d'
+            '8b51563a782a7dea38711335354bf65e2303b06bfecacf9cc060ecfc7b0851b8')
+
+prepare() {
+  cd zathura-pdf-mupdf-$pkgver
+  patch -p1 <"$srcdir"/0001-Remove-mupdf-linking-detection.patch
+}
+
+build() {
+  cd zathura-pdf-mupdf-$pkgver
+  arch-meson build
+  ninja -C build
+}
+
+package(){
+  DESTDIR="$pkgdir" ninja -C zathura-pdf-mupdf-$pkgver/build install
+  install -Dm0644 zathura-pdf-mupdf-$pkgver/LICENSE 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to