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

trojita-git with .desktop

By: a guest on Nov 3rd, 2011  |  syntax: Bash  |  size: 1.05 KB  |  views: 49  |  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. # Contributor: Massimiliano Torromeo <Massimiliano DOT Torromeo AT gmail DOT com>
  2. pkgname=trojita-git
  3. _pkgname=trojita
  4. pkgver=20111103
  5. pkgrel=1
  6. pkgdesc="A QT IMAP email client"
  7. arch=(i686 x86_64)
  8. url="http://trojita.flaska.net"
  9. license=('GPL')
  10. depends=('qt')
  11. makedepends=('git' 'cmake')
  12.  
  13. _gitroot="git://gitorious.org/${_pkgname}/${_pkgname}.git"
  14. _gitname=$_pkgname
  15.  
  16. build() {
  17.         cd "$srcdir"
  18.         msg "Connecting to GIT server...."
  19.  
  20.         if [ -d $_gitname ] ; then
  21.                 cd $_gitname && git pull origin
  22.                 msg "The local files are updated."
  23.         else
  24.                 git clone $_gitroot
  25.         fi
  26.  
  27.         msg "GIT checkout done or server timeout"
  28.         msg "Starting make..."
  29.  
  30.         rm -rf "$srcdir/$_gitname-build"
  31.         git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  32.         cd "$srcdir/$_gitname-build"
  33.  
  34.         qmake CONFIG+=trojita.pro
  35.         make
  36.  
  37.         install -D -m755 src/Gui/trojita "$pkgdir/usr/bin/trojita"
  38.         install -D -m644 src/Gui/trojita.desktop ${pkgdir}/usr/share/applications/trojita.desktop
  39.         install -D -m644 src/icons/trojita.svg ${pkgdir}/usr/share/icons/hicolor/scalable/apps/trojita.svg
  40. }
  41.  
  42.