summaryrefslogtreecommitdiff
path: root/libre/gloobus-preview/PKGBUILD
blob: e37b5026f8214343b47c224327fcae5b7deb3b9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# $Id: PKGBUILD 167838 2016-03-21 17:48:29Z bgyorgy $
# Maintainer (Arch): Balló György <ballogyor+arch at gmail dot com>
# Maintainer (Hyperbola): André Silva <emulatorman@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=gloobus-preview
_bzrrev=335
_bzrpath=~gloobus-dev/$pkgname/last_working_branch
pkgver=0.4.5.$_bzrrev
pkgrel=3.parabola1
pkgdesc="GNOME application designed to enable a full screen preview of any kind of file, with libarchive support"
arch=('i686' 'x86_64' 'armv7h')
url="https://launchpad.net/gloobus-preview"
license=('GPL')
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'
            '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'
            'unoconv: Preview LibreOffice compatible documents')
source=($pkgname-$_bzrrev.tar.gz::https://bazaar.launchpad.net/$_bzrpath/tarball/$_bzrrev
        'gloobus-preview-usr-bsdtar-for-rar.patch')
sha256sums=('094e5073d0f719681c47dd12ab701fc5d59e996926eee5dfad4306a1e51b4979'
            'd9b2718b1584f55c5d714e7bba6c957f3e3653d76603c08526c8c8ea79275e80')

prepare() {
  cd $_bzrpath
  # Use bsdtar (libarchive) for RAR.
  patch -Np1 -i "$srcdir/gloobus-preview-usr-bsdtar-for-rar.patch"
}

build() {
  cd $_bzrpath
  ./autogen.sh --prefix=/usr

  #https://bugzilla.gnome.org/show_bug.cgi?id=656231
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

  make
}

package() {
  cd $_bzrpath
  make DESTDIR="$pkgdir" install
}