From 0f1a926f98445f4ab127af2341eeb9fbc27b75c0 Mon Sep 17 00:00:00 2001 From: Michał Masłowski Date: Sun, 23 Jun 2013 15:22:04 +0200 Subject: gloobus-preview-libre using bsdtar instead of unrar. --- libre/gloobus-preview-libre/PKGBUILD | 90 ++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 libre/gloobus-preview-libre/PKGBUILD (limited to 'libre/gloobus-preview-libre/PKGBUILD') diff --git a/libre/gloobus-preview-libre/PKGBUILD b/libre/gloobus-preview-libre/PKGBUILD new file mode 100644 index 000000000..12bff5f1d --- /dev/null +++ b/libre/gloobus-preview-libre/PKGBUILD @@ -0,0 +1,90 @@ +# $Id: PKGBUILD 91027 2013-05-18 11:44:36Z bgyorgy $ +# Maintainer: Balló György + +_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)" +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') +optdepends=('djvulibre: Preview DjVu documents' + 'gstreamer0.10-bad-plugins: Extra media codecs' + 'gstreamer0.10-good-plugins: Extra media codecs' + 'gstreamer0.10-ffmpeg: Extra media codecs' + 'gstreamer0.10-ugly-plugins: Extra media codecs' + 'libspectre: Preview PostScript documents' + 'p7zip: View content of 7z archives' + 'unoconv: Preview LibreOffice compatible documents' + 'unzip: View content of .ZIP archives') +options=('!libtool') +install=$_pkgname.install +source=(https://launchpad.net/~gloobus-dev/+archive/$_pkgname/+files/${_pkgname}_$_pkgver.orig.tar.xz + gloobus-sushi::bzr+http://bazaar.launchpad.net/~gloobus-dev/gloobus-sushi/gloobus-sushi + fix-gtksource-include.patch + fix-unoconv.patch + use-xdg-open.patch + gloobus-preview-usr-bsdtar-for-rar.patch) +md5sums=('27b3db2043ecaf47fa928940bbb4f32a' + 'SKIP' + 'ca15a3e31cec01d3d4fc5a4e1720f692' + '03379c173e67ad1b6804bc609336451d' + 'd6d9e2b3e001f0ea8440cccdf90480af' + 'eeab61846c861540bb16ca00fa14cdb6') + +prepare() { + cd "$srcdir/$_pkgname-$_pkgver" + + # Python2 fix + sed -i 's@^#!.*python$@#!/usr/bin/python2@' src/gloobus-preview-configuration + + # Fix build + patch -Np1 -i "$srcdir/fix-gtksource-include.patch" + sed -i 's/-Werror//' configure.ac src/Makefile.am + + # Fix unoconv support + patch -Np1 -i "$srcdir/fix-unoconv.patch" + + # Use xdg-open + patch -Np1 -i "$srcdir/use-xdg-open.patch" + + # Use bsdtar if unrar is not found. + patch -Np0 -i "$srcdir/gloobus-preview-usr-bsdtar-for-rar.patch" + + ### Prepare gloobus-sushi + cd "$srcdir/gloobus-sushi" + + # Python2 fix + sed -i 's/python /python2 /' src/gloobus-sushi.in +} + + +build() { + cd "$srcdir/$_pkgname-$_pkgver" + + ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --disable-static + make + + ### Build gloobus-sushi + cd "$srcdir/gloobus-sushi" + + ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make +} + +package() { + cd "$srcdir/$_pkgname-$_pkgver" + make DESTDIR="$pkgdir" install + + ### Install gloobus-sushi + cd "$srcdir/gloobus-sushi" + make DESTDIR="$pkgdir" install + + # Rename service file to avoid conflict with sushi + mv "$pkgdir"/usr/share/dbus-1/services/{org.gnome.Sushi.service,net.gloobus.Sushi.service} +} -- cgit v1.2.3 From 3f9dcc1ac1c966e30981f9b1be3b5b0820074a22 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado 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(-) (limited to 'libre/gloobus-preview-libre/PKGBUILD') 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 _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