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 Sep 17th, 2010  |  syntax: None  |  size: 0.90 KB  |  views: 215  |  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. pkgname=msn-pecan-git
  2. pkgver=20100917
  3. pkgrel=1
  4. pkgdesc="msn-pecan is an improved MSN plug-in for Pidgin."
  5. arch=('i686' 'x86_64')
  6. url="http://code.google.com/p/msn-pecan/"
  7. license=('GPL')
  8. provides=('msn-pecan')
  9. conflicts=('msn-pecan')
  10. makedepends=('git')
  11. depends=('libpurple')
  12.  
  13. _gitroot="git://github.com/felipec/msn-pecan.git"
  14. _gitname="msn-pecan"
  15.  
  16. build() {
  17.  
  18.   cd $srcdir
  19.   msg "Connectiong to GIT server..."
  20.  
  21.   if [ -d $_gitname ] ; then
  22.         cd $_gitname && git pull origin
  23.         msg "The local files are updated."
  24.   else
  25.         git clone $_gitroot $_gitname
  26.   fi
  27.  
  28.   msg "GIT checkout done or server timeout"
  29.   msg "Starting make..."
  30.  
  31.   git clone $srcdir/$_gitname $srcdir/$_gitname-build
  32.   cd $srcdir/$_gitname-build
  33.  
  34.   make || return 1
  35.   make DESTDIR="$pkgdir" install || return 1
  36.   make DESTDIR="$pkgdir" install_locales || return 1
  37.  
  38.   rm -rf $srcdir/$_gitname-build
  39.  
  40. }
clone this paste RAW Paste Data