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 Jul 10th, 2011  |  syntax: None  |  size: 0.88 KB  |  views: 59  |  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: Geoffroy Carrier <geoffroy.carrier@koon.fr>
  2. pkgname=shell-fm-git
  3. pkgver=20110710
  4. pkgrel=1
  5. pkgdesc="A console based player for the streams provided by Last.fm"
  6. arch=('i686' 'x86_64')
  7. url="http://github.com/jkramer/shell-fm"
  8. license=('GPL')
  9. depends=('libmad' 'libao' 'taglib')
  10. makedepends=('git')
  11. provides=('shell-fm')
  12. conflicts=('shell-fm')
  13.  
  14. _gitroot="git://github.com/jkramer/shell-fm.git"
  15. _gitname="shell-fm"
  16.  
  17. build() {
  18.   cd "$srcdir"
  19.   msg "Connecting to GIT server...."
  20.  
  21.   if [ -d "$srcdir/$_gitname" ] ; then
  22.     cd "$_gitname" && git pull origin
  23.     msg "The local files are updated."
  24.   else
  25.     git clone "$_gitroot"
  26.   fi
  27.  
  28.   msg "GIT checkout done or server timeout"
  29.   msg "Starting make..."
  30.  
  31.   rm -rf "$srcdir/$_gitname-build"
  32.   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  33.   cd "$srcdir/$_gitname-build"
  34.  
  35.   make
  36.   make DESTDIR="${pkgdir}" MANDIR="/usr/share/man" install
  37. }
clone this paste RAW Paste Data