summaryrefslogtreecommitdiff
path: root/community/gloobus-preview/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-19 01:31:03 -0700
committerroot <root@rshg054.dnsready.net>2013-05-19 01:31:03 -0700
commit9a30c3d0083b8330b1aa6c0f89245e68ae762ee5 (patch)
treed7249e7354a9daabdf75f5c25da47363d35f15a6 /community/gloobus-preview/PKGBUILD
parent4e1091baf58d4d28f6bf3cc4fee8ea0bfd10a7a8 (diff)
Sun May 19 01:30:44 PDT 2013
Diffstat (limited to 'community/gloobus-preview/PKGBUILD')
-rw-r--r--community/gloobus-preview/PKGBUILD85
1 files changed, 85 insertions, 0 deletions
diff --git a/community/gloobus-preview/PKGBUILD b/community/gloobus-preview/PKGBUILD
new file mode 100644
index 000000000..d460e6610
--- /dev/null
+++ b/community/gloobus-preview/PKGBUILD
@@ -0,0 +1,85 @@
+# $Id: PKGBUILD 91027 2013-05-18 11:44:36Z bgyorgy $
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=gloobus-preview
+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"
+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'
+ 'unrar: View content of RAR archives'
+ '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)
+md5sums=('27b3db2043ecaf47fa928940bbb4f32a'
+ 'SKIP'
+ 'ca15a3e31cec01d3d4fc5a4e1720f692'
+ '03379c173e67ad1b6804bc609336451d'
+ 'd6d9e2b3e001f0ea8440cccdf90480af')
+
+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"
+
+ ### 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}
+}