diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-09-03 19:04:59 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-09-03 19:04:59 -0300 |
commit | 369dde3f21cde189d173c347d92276dad2a8bab4 (patch) | |
tree | 038e6845a55392ce934d76bacd1de7c4ee745d7a /libre/atril-libre | |
parent | 6fbbd0ff4c469ca66b42ba8ddea50d24e08a0610 (diff) |
rename to atril
Diffstat (limited to 'libre/atril-libre')
-rw-r--r-- | libre/atril-libre/PKGBUILD | 62 | ||||
-rw-r--r-- | libre/atril-libre/atril.install | 13 | ||||
-rw-r--r-- | libre/atril-libre/libarchive.patch | 91 |
3 files changed, 0 insertions, 166 deletions
diff --git a/libre/atril-libre/PKGBUILD b/libre/atril-libre/PKGBUILD deleted file mode 100644 index a082a1bce..000000000 --- a/libre/atril-libre/PKGBUILD +++ /dev/null @@ -1,62 +0,0 @@ -# $Id: PKGBUILD 106531 2014-03-05 20:16:04Z flexiondotorg $ -# Maintainer (Arch): Martin Wimpress <code@flexion.org> -# Maintainer: André Silva <emulatorman@parabola.nu> - -_pkgname=atril -pkgname=atril-libre -pkgver=1.8.0 -pkgrel=1.1 -pkgdesc="Simply a document viewer, with libarchive support" -url="http://mate-desktop.org" -arch=('i686' 'x86_64' 'mips64el') -license=('GPL') -depends=('dconf' 'dbus' 'desktop-file-utils' 'gtk2' 'libsm' 'libspectre' - 'mate-desktop' 'mate-icon-theme' 'poppler-glib' 'zlib') -makedepends=('caja' 'djvulibre' 'gobject-introspection' 'libgxps' 'mate-common' - 'perl-xml-parser' 'texlive-bin' 'yelp-tools') -optdepends=('caja: Document Properties extension' - 'djvulibre: DjVu support' - 'libgxps: XPS support' - 'p7zip: cbz and cb7 compressed comic books' - 'texlive-bin: DVI support' - 'libarchive: cbr compressed comic books' - 'yelp: for reading MATE help documents') -replaces=('mate-document-viewer' "$_pkgname") -provides=('mate-document-viewer' "$_pkgname=$pkgver") -conflicts=('mate-document-viewer' "$_pkgname") -options=('!emptydirs') -groups=('mate-extra') -source=("http://pub.mate-desktop.org/releases/1.8/${_pkgname}-${pkgver}.tar.xz" - 'libarchive.patch') -sha1sums=('8327437ba12df61326b83342cea746d1764727d0' - 'e88168d61b18ce8e340ef3db9c6df6bb66c65d14') -install=${_pkgname}.install - -prepare() { - cd "${srcdir}/${_pkgname}-${pkgver}" - NOCONFIGURE=1 ./autogen.sh - patch -Np1 -i ../libarchive.patch -} - -build() { - cd "${srcdir}/${_pkgname}-${pkgver}" - ./configure \ - --prefix=/usr \ - --libexecdir=/usr/lib/${_pkgname} \ - --with-gtk=2.0 \ - --enable-gtk-doc \ - --enable-djvu \ - --enable-dvi \ - --enable-t1lib \ - --enable-pixbuf \ - --enable-comics \ - --enable-xps \ - --enable-introspection \ - --disable-static - make -} - -package() { - cd "${srcdir}/${_pkgname}-${pkgver}" - make DESTDIR="${pkgdir}" install -} diff --git a/libre/atril-libre/atril.install b/libre/atril-libre/atril.install deleted file mode 100644 index bf6781f93..000000000 --- a/libre/atril-libre/atril.install +++ /dev/null @@ -1,13 +0,0 @@ -post_install() { - glib-compile-schemas /usr/share/glib-2.0/schemas/ - gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor - update-desktop-database -q -} - -post_upgrade() { - post_install -} - -post_remove() { - post_install -} diff --git a/libre/atril-libre/libarchive.patch b/libre/atril-libre/libarchive.patch deleted file mode 100644 index f86908267..000000000 --- a/libre/atril-libre/libarchive.patch +++ /dev/null @@ -1,91 +0,0 @@ -diff --git a/backend/comics/comics-document.c b/backend/comics/comics-document.c -index a135a74..380cb54 100644 ---- a/backend/comics/comics-document.c -+++ b/backend/comics/comics-document.c -@@ -54,8 +54,7 @@ - - typedef enum - { -- RARLABS, -- GNAUNRAR, -+ LIBARCHIVE, - UNZIP, - P7ZIP, - TAR -@@ -107,11 +106,8 @@ typedef struct { - } ComicBookDecompressCommand; - - static const ComicBookDecompressCommand command_usage_def[] = { -- /* RARLABS unrar */ -- {"%s p -c- -ierr --", "%s vb -c- -- %s", NULL , FALSE, NO_OFFSET}, -- -- /* GNA! unrar */ -- {NULL , "%s t %s" , "%s -xf %s %s" , FALSE, NO_OFFSET}, -+ /* libarchive */ -+ {NULL , "%s tf %s" , "%s xf %s %s" , FALSE, NO_OFFSET}, - - /* unzip */ - {"%s -p -C --" , "%s %s" , NULL , TRUE , OFFSET_ZIP}, -@@ -282,7 +278,7 @@ comics_generate_command_lines (ComicsDocument *comics_document, - if (comics_document->dir == NULL) - return FALSE; - -- /* unrar-free can't create directories, but ev_mkdtemp already created the dir */ -+ /* libarchive can't create directories on rar support, but ev_mkdtemp already created the dir */ - - comics_document->decompress_tmp = - g_strdup_printf (command_usage_def[type].decompress_tmp, -@@ -321,51 +317,10 @@ comics_check_decompress_command (gchar *mime_type, - - if (!strcmp (mime_type, "application/x-cbr") || - !strcmp (mime_type, "application/x-rar")) { -- /* The RARLAB provides a no-charge proprietary (freeware) -- * decompress-only client for Linux called unrar. Another -- * option is a GPLv2-licensed command-line tool developed by -- * the Gna! project. Confusingly enough, the free software RAR -- * decoder is also named unrar. For this reason we need to add -- * some lines for disambiguation. Sorry for the added the -- * complexity but it's life :) -- * Finally, some distributions, like Debian, rename this free -- * option as unrar-free. -- * */ -- comics_document->selected_command = -- g_find_program_in_path ("unrar"); -- if (comics_document->selected_command) { -- /* We only use std_err to avoid printing useless error -- * messages on the terminal */ -- success = -- g_spawn_command_line_sync ( -- comics_document->selected_command, -- &std_out, &std_err, -- &retval, &err); -- if (!success) { -- g_propagate_error (error, err); -- g_error_free (err); -- return FALSE; -- /* I don't check retval status because RARLAB unrar -- * doesn't have a way to return 0 without involving an -- * operation with a file*/ -- } else if (WIFEXITED (retval)) { -- if (g_strrstr (std_out,"freeware") != NULL) -- /* The RARLAB freeware client */ -- comics_document->command_usage = RARLABS; -- else -- /* The Gna! free software client */ -- comics_document->command_usage = GNAUNRAR; -- -- g_free (std_out); -- g_free (std_err); -- return TRUE; -- } -- } -- /* The Gna! free software client with Debian naming convention */ - comics_document->selected_command = -- g_find_program_in_path ("unrar-free"); -+ g_find_program_in_path ("bsdtar"); - if (comics_document->selected_command) { -- comics_document->command_usage = GNAUNRAR; -+ comics_document->command_usage = LIBARCHIVE; - return TRUE; - } - |