From 3f9dcc1ac1c966e30981f9b1be3b5b0820074a22 Mon Sep 17 00:00:00 2001
From: André Fabian Silva Delgado <emulatorman@lavabit.com>
Date: Sun, 30 Jun 2013 15:52:06 -0300
Subject: gloobus-preview-libre: add provides, conflicts and replaces from
 gloobus-preview

---
 libre/gloobus-preview-libre/PKGBUILD | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/libre/gloobus-preview-libre/PKGBUILD b/libre/gloobus-preview-libre/PKGBUILD
index 12bff5f1d..5881a4c2e 100644
--- a/libre/gloobus-preview-libre/PKGBUILD
+++ b/libre/gloobus-preview-libre/PKGBUILD
@@ -1,17 +1,20 @@
-# $Id: PKGBUILD 91027 2013-05-18 11:44:36Z bgyorgy $
+# $Id: PKGBUILD 91026 2013-05-18 11:44:23Z bgyorgy $
 # Maintainer: Balló György <ballogyor+arch at gmail dot com>
 
 _pkgname=gloobus-preview
 pkgname=gloobus-preview-libre
 pkgver=0.4.5.290
 _pkgver=0.4.5-ubuntu11~ppa290
-pkgrel=1
-pkgdesc="Gnome application designed to enable a full screen preview of any kind of file (using bsdtar to preview RAR archives)"
+pkgrel=1.1
+pkgdesc="Gnome application designed to enable a full screen preview of any kind of file, with libarchive support"
 arch=('i686' 'x86_64')
 url="http://gloobus.net/"
 license=('GPL')
 depends=('gstreamer0.10-base-plugins' 'gtksourceview3' 'poppler-glib' 'python2-dbus' 'python2-gconf' 'taglib' 'xdg-utils')
 makedepends=('boost' 'bzr' 'djvulibre' 'libspectre')
+replaces=$_pkgname
+conflicts=$_pkgname
+provides=$_pkgname=$pkgver
 optdepends=('djvulibre: Preview DjVu documents'
             'gstreamer0.10-bad-plugins: Extra media codecs'
             'gstreamer0.10-good-plugins: Extra media codecs'
@@ -20,6 +23,7 @@ optdepends=('djvulibre: Preview DjVu documents'
             'libspectre: Preview PostScript documents'
             'p7zip: View content of 7z archives'
             'unoconv: Preview LibreOffice compatible documents'
+            'libarchive: View content of RAR archives'
             'unzip: View content of .ZIP archives')
 options=('!libtool')
 install=$_pkgname.install
@@ -52,7 +56,7 @@ prepare() {
   # Use xdg-open
   patch -Np1 -i "$srcdir/use-xdg-open.patch"
 
-  # Use bsdtar if unrar is not found.
+  # Use bsdtar (libarchive) if unrar is not found.
   patch -Np0 -i "$srcdir/gloobus-preview-usr-bsdtar-for-rar.patch"
 
   ### Prepare gloobus-sushi
-- 
cgit v1.2.3-54-g00ecf