diff options
author | B. Watson <yalhcru@gmail.com> | 2014-08-22 17:44:08 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-08-22 17:46:09 +0700 |
commit | 0bd33ceef2a21143711edae9fb87bfb74a16d8c6 (patch) | |
tree | 37bbff1cf1b1bb2e6da9e22da5c893922ec16b0d /office | |
parent | 4f36fb5807d77d232b040f8308cc648fea57afc9 (diff) | |
download | slackbuilds-0bd33ceef2a21143711edae9fb87bfb74a16d8c6.tar.gz |
office/zathura-cb: Updated for version 0.1.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r-- | office/zathura-cb/glib228compat.diff | 59 | ||||
-rw-r--r-- | office/zathura-cb/zathura-cb.SlackBuild | 7 | ||||
-rw-r--r-- | office/zathura-cb/zathura-cb.info | 8 |
3 files changed, 5 insertions, 69 deletions
diff --git a/office/zathura-cb/glib228compat.diff b/office/zathura-cb/glib228compat.diff deleted file mode 100644 index 20b9b5a59c..0000000000 --- a/office/zathura-cb/glib228compat.diff +++ /dev/null @@ -1,59 +0,0 @@ -diff -Naur zathura-cb-0.1.0/cb.c zathura-cb-0.1.0.patched/cb.c ---- zathura-cb-0.1.0/cb.c 2012-06-09 17:48:13.000000000 -0400 -+++ zathura-cb-0.1.0.patched/cb.c 2012-07-22 15:06:18.000000000 -0400 -@@ -1,7 +1,9 @@ - /* See LICENSE file for license and copyright information */ - --#include <stdlib.h> - #include <stdio.h> -+#include <unistd.h> -+#include <limits.h> -+#include <stdlib.h> - #include <glib.h> - #include <gtk/gtk.h> - #include <glib/gstdio.h> -@@ -11,7 +13,7 @@ - #include "utils.h" - - struct cb_document_s { -- char* directory; /**< Path to the directory */ -+ char directory[4096]; /**< Path to the directory */ - girara_list_t* page_paths; /**< List of page paths */ - }; - -@@ -58,8 +60,8 @@ - cb_document_t* cb_document = g_malloc0(sizeof(cb_document)); - - /* create temp directory */ -- cb_document->directory = g_dir_make_tmp("zathura-cb-XXXXXX", NULL); -- if (cb_document->directory == NULL) { -+ sprintf(cb_document->directory, "%s/zathura-cb-XXXXXX", g_get_tmp_dir()); -+ if(mkdtemp(cb_document->directory) == NULL) { - goto error_free; - } - -@@ -148,18 +150,18 @@ - return ZATHURA_ERROR_INVALID_ARGUMENTS; - } - -- /* remove temp directory */ -- if (cb_document->directory != NULL) { -- g_remove(cb_document->directory); -- } -- - /* remove page list */ - if (cb_document->page_paths != NULL) { -+ char *path; -+ GIRARA_LIST_FOREACH(cb_document->page_paths, char*, iter, path) -+ g_remove(path); -+ GIRARA_LIST_FOREACH_END(cb_document->page_paths, char*, iter, path); - girara_list_free(cb_document->page_paths); - } - -+ /* remove temp directory */ - if (cb_document->directory != NULL) { -- g_free(cb_document->directory); -+ g_remove(cb_document->directory); - } - - g_free(cb_document); diff --git a/office/zathura-cb/zathura-cb.SlackBuild b/office/zathura-cb/zathura-cb.SlackBuild index 7897fd75dd..70500f2c36 100644 --- a/office/zathura-cb/zathura-cb.SlackBuild +++ b/office/zathura-cb/zathura-cb.SlackBuild @@ -7,7 +7,7 @@ # Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details. PRGNAM=zathura-cb -VERSION=${VERSION:-0.1.0} +VERSION=${VERSION:-0.1.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -53,11 +53,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# as shipped, the source uses g_dir_make_tmp(), which was introduced in -# glib-2.30. Slack 13.37 ships with glib-2.28, so we make the code use -# g_mkdtemp() instead. -patch -p1 < $CWD/glib228compat.diff - sed -i "s,-fPIC,$SLKCFLAGS," config.mk make VERBOSE=1 diff --git a/office/zathura-cb/zathura-cb.info b/office/zathura-cb/zathura-cb.info index 6f80dcc389..b2db311047 100644 --- a/office/zathura-cb/zathura-cb.info +++ b/office/zathura-cb/zathura-cb.info @@ -1,10 +1,10 @@ PRGNAM="zathura-cb" -VERSION="0.1.0" +VERSION="0.1.2" HOMEPAGE="http://www.pwmt.org/projects/zathura/plugins/zathura-cb/" -DOWNLOAD="http://www.pwmt.org/projects/zathura/plugins/download/zathura-cb-0.1.0.tar.gz" +DOWNLOAD="http://www.pwmt.org/projects/zathura/plugins/download/zathura-cb-0.1.2.tar.gz" DOWNLOAD_x86_64="" -MD5SUM="be34b699862f4c1c9f5ef4347d1dfdef" +MD5SUM="56aad6e0ac0a256abc6a4fd441ea45ce" MD5SUM_x86_64="" -REQUIRES="p7zip unrar zathura" +REQUIRES="zathura" MAINTAINER="B. Watson" EMAIL="yalhcru@gmail.com" |