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

Untitled

By: a guest on Oct 14th, 2010  |  syntax: None  |  size: 0.92 KB  |  views: 36  |  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: Kevin McCarthy <me@kevinmccarthy.org>
  2.  
  3. pkgname=offlineimap-git
  4. pkgver=20100514
  5. pkgrel=1
  6. pkgdesc="A powerful IMAP/Maildir synchronization tool"
  7. url="http://wiki.github.com/jgoerzen/offlineimap/"
  8. arch=('i686' 'x86_64')
  9. license=('GPL')
  10. depends=('python')
  11. makedepends=('git')
  12. conflicts=('offlineimap')
  13. provides=('offlineimap')
  14. source=()
  15. md5sums=()
  16.  
  17. _gitroot="git://github.com/jgoerzen/offlineimap.git"
  18. _gitname="offlineimap"
  19.  
  20. build() {
  21.   cd ${srcdir}
  22.   msg "Connecting to GIT server...."
  23.  
  24.   if [ -d ${srcdir}/$_gitname ] ; then
  25.   cd $_gitname && git pull origin
  26.   msg "The local files are updated."
  27.   cd ${srcdir}
  28.   else
  29.   git clone $_gitroot $_gitname
  30.   fi
  31.  
  32.   msg "GIT checkout done or server timeout"
  33.   msg "Starting make..."
  34.  
  35.   rm -rf "$srcdir/$_gitname-build"
  36.   git clone $_gitname $_gitname-build
  37.   cd ${srcdir}/$_gitname-build
  38.  
  39.   python2 setup.py install --prefix=${pkgdir}/usr
  40.  
  41. }