PKGBUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Maintainer (Arch): Balló György <ballogyor+arch at gmail dot com>
  2. # Maintainer (Hyperbola): André Silva <emulatorman@hyperbola.info>
  3. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  4. pkgname=gloobus-preview
  5. _bzrrev=336
  6. _bzrpath=~gloobus-dev/$pkgname/last_working_branch
  7. pkgver=0.4.5.$_bzrrev
  8. pkgrel=1
  9. pkgrel+=.parabola1
  10. pkgdesc="GNOME application designed to enable a full screen preview of any kind of file"
  11. pkgdesc+=", with libarchive support"
  12. arch=('x86_64')
  13. arch+=('i686' 'armv7h')
  14. url="https://launchpad.net/gloobus-preview"
  15. license=('GPL')
  16. depends=('gst-plugins-base' 'gtksourceview3' 'poppler-glib' 'python-dbus' 'python-gobject')
  17. makedepends=('boost' 'bzr' 'djvulibre' 'libgxps' 'libspectre')
  18. replaces=(${pkgname}-libre)
  19. conflicts=(${pkgname}-libre)
  20. optdepends=('djvulibre: Preview DjVu documents'
  21. 'gst-libav: Extra media codecs'
  22. 'gst-plugins-bad: Extra media codecs'
  23. 'gst-plugins-good: Extra media codecs'
  24. 'gst-plugins-ugly: Extra media codecs'
  25. 'imagemagick: Support for more image formats'
  26. 'libgxps: Preview XPS documents'
  27. 'libspectre: Preview PostScript documents'
  28. 'unoconv: Preview LibreOffice compatible documents')
  29. source=($pkgname-$_bzrrev.tar.gz::https://bazaar.launchpad.net/$_bzrpath/tarball/$_bzrrev
  30. 'gloobus-preview-usr-bsdtar-for-rar.patch')
  31. sha256sums=('b10646dd23d277f8b3f86787cdd2fc6675fb9ce5d314b8886a4612448ba05209'
  32. 'd9b2718b1584f55c5d714e7bba6c957f3e3653d76603c08526c8c8ea79275e80')
  33. prepare() {
  34. cd $_bzrpath
  35. autoreconf -fi
  36. # Use bsdtar (libarchive) for RAR.
  37. patch -Np1 -i "$srcdir/gloobus-preview-usr-bsdtar-for-rar.patch"
  38. }
  39. build() {
  40. cd $_bzrpath
  41. ./configure --prefix=/usr
  42. #https://bugzilla.gnome.org/show_bug.cgi?id=656231
  43. sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  44. make
  45. }
  46. package() {
  47. cd $_bzrpath
  48. make DESTDIR="$pkgdir" install
  49. }