zathura: update to 0.3.4.

This commit is contained in:
Dominik Honnef 2016-01-02 04:38:32 +01:00
parent f1a40cce5f
commit e4756d3f8d
2 changed files with 56 additions and 3 deletions

View File

@ -0,0 +1,53 @@
From 5b3c183a9f8edf778f405f5da9b1ef8384775852 Mon Sep 17 00:00:00 2001
From: Jan Palus <jan.palus@gmail.com>
Date: Mon, 28 Dec 2015 22:19:07 +0100
Subject: [PATCH] fix build without synctex
---
zathura/main.c | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/zathura/main.c b/zathura/main.c
index 060382a..3278dbe 100644
--- zathura/main.c
+++ zathura/main.c
@@ -84,12 +84,14 @@ run_synctex_forward(const char* synctex_fwd, const char* filename,
static zathura_t*
init_zathura(const char* config_dir, const char* data_dir,
- const char* cache_dir, const char* plugin_path, char** argv,
+ const char* cache_dir, const char* plugin_path, char** argv
+#ifdef WITH_SYNCTEX
+ , char* synctex_editor
+#endif
#ifdef GDK_WINDOWING_X11
- char* synctex_editor, Window embed)
-#else
- char* synctex_editor)
+ , Window embed
#endif
+ )
{
/* create zathura session */
zathura_t* zathura = zathura_create();
@@ -250,11 +252,14 @@ main(int argc, char* argv[])
/* Create zathura session */
zathura_t* zathura = init_zathura(config_dir, data_dir, cache_dir,
+ plugin_path, argv
+#ifdef WITH_SYNCTEX
+ , synctex_editor
+#endif
#ifdef GDK_WINDOWING_X11
- plugin_path, argv, synctex_editor, embed);
-#else
- plugin_path, argv, synctex_editor);
+ , embed
#endif
+ );
if (zathura == NULL) {
girara_error("Could not initialize zathura.");
return -1;
--
libgit2 0.23.3

View File

@ -1,7 +1,7 @@
# Template file for 'zathura'
pkgname=zathura
version=0.3.3
revision=2
version=0.3.4
revision=1
build_style=gnu-makefile
# COLOR=0 to avoid "tput not found" spam in the build output
make_build_args="COLOR=0"
@ -13,7 +13,7 @@ license="zlib"
homepage="http://pwmt.org/projects/zathura/installation/"
short_desc="A highly customizable and functional document viewer"
distfiles="http://pwmt.org/projects/${pkgname}/download/${pkgname}-${version}.tar.gz"
checksum=3347decfc8d4b918a6bca1d44657c3b97d4afcea3c8c1f162c57198b13e8dce7
checksum=52c4a3efc5843ce7c720ea7357667699363c809fd34ada4cb350d0e1031d0234
pre_build() {
sed -i 's/^\(CFLAGS *+=\)/override \1/' config.mk