Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / 
zathura


Commits:
7fc7fdcc by Robin Candau at 2023-12-09T15:26:58+01:00
upgpkg: 0.5.3-1: New upstream release
Add new 'xorg-server-xvfb' checkdepends. See 
https://git.pwmt.org/pwmt/zathura/-/commit/c5f315d7121336bce0b912a8e696e3324e72c5d2
Add new 'libseccomp' depends for sandbox support. See 
https://git.pwmt.org/pwmt/zathura/-/blob/develop/README.md?ref_type=heads#requirements
Add a patch to prevent xvfb-run tests to fail during checks

- - - - -


3 changed files:

- + .SRCINFO
- PKGBUILD
- + fix-xvfb-run-tests.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,32 @@
+pkgbase = zathura
+       pkgdesc = Minimalistic document viewer
+       pkgver = 0.5.3
+       pkgrel = 1
+       url = https://pwmt.org/projects/zathura/
+       arch = x86_64
+       license = custom
+       checkdepends = xorg-server-xvfb
+       makedepends = python-sphinx
+       makedepends = texlive-bin
+       makedepends = meson
+       makedepends = ninja
+       makedepends = appstream-glib
+       makedepends = check
+       depends = girara
+       depends = sqlite
+       depends = desktop-file-utils
+       depends = file
+       depends = libsynctex
+       depends = file
+       depends = libseccomp
+       optdepends = zathura-djvu: DjVu support
+       optdepends = zathura-pdf-poppler: PDF support using Poppler
+       optdepends = zathura-pdf-mupdf: PDF support using MuPDF
+       optdepends = zathura-ps: PostScript support
+       optdepends = zathura-cb: Comic book support
+       source = 
zathura-0.5.3.tar.gz::https://pwmt.org/projects/zathura/download/zathura-0.5.3.tar.xz
+       source = fix-xvfb-run-tests.patch
+       sha256sums = 
54cc78fd68664cd66bbc7b7f72a78c677d381a9e3e3f6923f3d02ef5809943de
+       sha256sums = 
15bf4be1a6c1dc539e2f034fa30d509d19b016ec130aaa4cbe506bf61bc343fe
+
+pkgname = zathura


=====================================
PKGBUILD
=====================================
@@ -5,8 +5,8 @@
 # Contributor: ML <neldoreth>
 
 pkgname=zathura
-pkgver=0.5.2
-pkgrel=2
+pkgver=0.5.3
+pkgrel=1
 
 pkgdesc="Minimalistic document viewer"
 url="https://pwmt.org/projects/zathura/";
@@ -14,16 +14,26 @@ arch=('x86_64')
 license=('custom')
 
 makedepends=('python-sphinx' 'texlive-bin' 'meson' 'ninja' 'appstream-glib' 
'check')
-depends=('girara>=0.2.7' 'sqlite' 'desktop-file-utils' 'file' 'libsynctex' 
'file')
+checkdepends=('xorg-server-xvfb')
+depends=('girara' 'sqlite' 'desktop-file-utils' 'file' 'libsynctex' 'file' 
'libseccomp')
 optdepends=('zathura-djvu: DjVu support'
             'zathura-pdf-poppler: PDF support using Poppler'
             'zathura-pdf-mupdf: PDF support using MuPDF'
             'zathura-ps: PostScript support'
             'zathura-cb: Comic book support')
 
-source=(zathura-$pkgver.tar.gz::https://pwmt.org/projects/zathura/download/zathura-$pkgver.tar.xz)
+source=(zathura-$pkgver.tar.gz::https://pwmt.org/projects/zathura/download/zathura-$pkgver.tar.xz
+        fix-xvfb-run-tests.patch)
 
-sha256sums=('c64ba7cb9facf2b1499b9dc929b6736c72c69f8062eed4f2940556c852256194')
+sha256sums=('54cc78fd68664cd66bbc7b7f72a78c677d381a9e3e3f6923f3d02ef5809943de'
+            '15bf4be1a6c1dc539e2f034fa30d509d19b016ec130aaa4cbe506bf61bc343fe')
+
+prepare() {
+  # Patch to prevent xvfb-run tests to fail when trying to kill the process 
during check()
+  # See 
https://stackoverflow.com/questions/30504274/xvfb-run-line-171-kill-25939-no-such-process#comment64585805_35319908
+  cd zathura-$pkgver
+  patch -Np1 <${srcdir}/fix-xvfb-run-tests.patch
+}
 
 build() {
   cd zathura-$pkgver


=====================================
fix-xvfb-run-tests.patch
=====================================
@@ -0,0 +1,12 @@
+diff --git a/tests/meson.build b/tests/meson.build
+index 1b2e81a..bbfc668 100644
+--- a/tests/meson.build
++++ b/tests/meson.build
+@@ -42,7 +42,7 @@ if check.found()
+       c_args: defines + flags
+     )
+     test('session', xvfb,
+-      args: ['-a', '-s', '-screen 0 1400x900x24 -ac +extension GLX +render 
-noreset', session],
++      args: ['-d', '-s', '-screen 0 1400x900x24 -ac +extension GLX +render 
-noreset', session],
+       timeout: 60*60
+     )



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/zathura/-/commit/7fc7fdcc099edbe920f99112e8ff87bd6ff265a9

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/zathura/-/commit/7fc7fdcc099edbe920f99112e8ff87bd6ff265a9
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to