Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Gloobus-Preview

By: a guest on May 16th, 2010  |  syntax: Bash  |  size: 1.54 KB  |  views: 221  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Alessio 'alexwizard' Sergi <sergi.alessio {at} gmail.com>
  2.  
  3. pkgname=gloobus-preview-bzr
  4. _realname=gloobus-preview
  5. pkgver=213
  6. pkgrel=1
  7. pkgdesc="A quicklook for GNU/Linux"
  8. arch=('i686' 'x86_64')
  9. url="https://launchpad.net/gloobus-preview"
  10. license=('GPL3')
  11. depends=('gstreamer0.10-base' 'gtksourceview2' 'libdjvu' 'libgnomeui' \
  12.          'libspectre' 'poppler-glib' 'python' 'swfdec<0.9' 'taglib')
  13. makedepends=('bzr' 'cvs')
  14. optdepends=('nautilus-elementary: for GNOME integration'
  15.             'nautilus-actions: for GNOME menu integration'
  16.             'gdk-pixbuf-psd: for psd file format support'
  17.             'gdk-pixbuf-xcf: for xcf file format support'
  18.             'libicns: for icns file format support'
  19.             'unoconv: for OOo file formats support')
  20. provides=(${_realname})
  21. conflicts=(${_realname})
  22. options=('!libtool')
  23. install=${pkgname}.install
  24. source=(noloaders.patch)
  25. md5sums=('c6e02c36728c7fc3cf3b1fc7b9116930')
  26.  
  27. _bzrbranch=lp:${_realname}
  28. _bzrmod=${_realname}
  29.  
  30. build() {
  31.   cd ${srcdir}
  32.  
  33.   msg "Connecting to the server...."
  34.  
  35.   if [ ! -d ${_bzrmod} ]; then
  36.     bzr co ${_bzrbranch} ${_bzrmod}
  37.   else
  38.     bzr up ${_bzrmod}
  39.   fi
  40.  
  41.   msg "BZR checkout done or server timeout"
  42.   msg "Starting make..."
  43.  
  44.   rm -rf ${_bzrmod}-build
  45.   cp -r ${_bzrmod} ${_bzrmod}-build
  46.   cd ${_bzrmod}-build
  47.  
  48.   patch -Np1 -i ${srcdir}/noloaders.patch || return 1
  49.  
  50.   ./autogen.sh && ./configure --prefix=/usr || return 1
  51.   make || return 1
  52.   make DESTDIR=${pkgdir} install || return 1
  53.  
  54. #  rm -rf ${srcdir}/${_bzrmod}-build
  55. }