summaryrefslogtreecommitdiff
path: root/libre/gloobus-preview/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/gloobus-preview/PKGBUILD')
-rw-r--r--libre/gloobus-preview/PKGBUILD94
1 files changed, 20 insertions, 74 deletions
diff --git a/libre/gloobus-preview/PKGBUILD b/libre/gloobus-preview/PKGBUILD
index 7d02eb70e..46e969fad 100644
--- a/libre/gloobus-preview/PKGBUILD
+++ b/libre/gloobus-preview/PKGBUILD
@@ -1,102 +1,48 @@
-# $Id: PKGBUILD 104564 2014-01-22 21:49:14Z bgyorgy $
+# $Id: PKGBUILD 125582 2015-01-08 01:06:56Z bgyorgy $
# Maintainer (Arch): Balló György <ballogyor+arch at gmail dot com>
# Maintainer: André Silva <emulatorman@parabola.nu>
pkgname=gloobus-preview
-pkgver=0.4.5.290
-_pkgver=0.4.5-ubuntu11~ppa290
-pkgrel=2.parabola1
-pkgdesc="Gnome application designed to enable a full screen preview of any kind of file, with libarchive support"
+pkgver=0.4.5.333
+pkgrel=1.parabola1
+pkgdesc="GNOME application designed to enable a full screen preview of any kind of file, with libarchive support"
arch=('i686' 'x86_64' 'mips64el')
url="http://gloobus.net/"
license=('GPL')
-depends=('gstreamer0.10-base-plugins' 'gtksourceview3' 'poppler-glib' 'python2-dbus' 'python2-gobject' 'gconf' 'taglib' 'xdg-utils')
-makedepends=('boost' 'bzr' 'djvulibre' 'libspectre')
+depends=('gst-plugins-base' 'gtksourceview3' 'poppler-glib' 'python-dbus' 'python-gobject')
+makedepends=('boost' 'bzr' 'djvulibre' 'libgxps' 'libspectre')
replaces=(${pkgname}-libre)
conflicts=(${pkgname}-libre)
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'
+ 'gst-libav: Extra media codecs'
+ 'gst-plugins-bad: Extra media codecs'
+ 'gst-plugins-good: Extra media codecs'
+ 'gst-plugins-ugly: Extra media codecs'
+ 'imagemagick: Support for more image formats'
+ 'libgxps: Preview XPS 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')
+ 'unoconv: Preview LibreOffice compatible documents')
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-configuration-pygobject3-port.patch
- gloobus-sushi-pygobject3-port.patch
+source=($pkgname-$pkgver::bzr+http://bazaar.launchpad.net/~gloobus-dev/gloobus-preview/last_working_branch#revision=333
gloobus-preview-usr-bsdtar-for-rar.patch)
-md5sums=('27b3db2043ecaf47fa928940bbb4f32a'
- 'SKIP'
- 'ca15a3e31cec01d3d4fc5a4e1720f692'
- '03379c173e67ad1b6804bc609336451d'
- 'd6d9e2b3e001f0ea8440cccdf90480af'
- '16e7a7d892dfde5fd40332fc41de97b0'
- '7536f8fbbb2c6bbc0132a2fa25b296b7'
- '25cda63ad406f00d3a7ba61ee8816b5c')
+md5sums=('SKIP'
+ 'f605aab1153b7dcd136a16264182a526')
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"
-
- # Port gloobus-preview-configuration to pygobject3
- patch -Np1 -i "$srcdir/gloobus-preview-configuration-pygobject3-port.patch"
+ cd $pkgname-$pkgver
# Use bsdtar (libarchive) for RAR.
patch -Np1 -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
-
- # Port gloobus-sushi to pygobject3
- patch -Np1 -i "$srcdir/gloobus-sushi-pygobject3-port.patch"
}
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
+ cd $pkgname-$pkgver
+ ./autogen.sh --prefix=/usr
make
}
package() {
- cd "$srcdir/$pkgname-$_pkgver"
+ cd $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}
}