Don't like ads? PRO users don't see any ads ;-)
Guest

corrected shell-fm PKGBUILD

By: a guest on Sep 10th, 2010  |  syntax: None  |  size: 0.94 KB  |  hits: 60  |  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=20100910
  4. pkgrel=1
  5. pkgdesc="A console based player for the streams provided by Last.FM"
  6. arch=('i686' 'x86_64')
  7. url="http://nex.scrapping.cc/code/shell-fm/"
  8. license=('GPL')
  9. depends=('libmad' 'libao')
  10. makedepends=('git')
  11. provides=('shell-fm')
  12. conflicts=('shell-fm')
  13. source=()
  14. md5sums=()
  15.  
  16. _gitroot="git://github.com/jkramer/shell-fm.git"
  17. _gitname="shell-fm"
  18.  
  19. build() {
  20.   cd "$srcdir"
  21.   msg "Connecting to GIT server...."
  22.  
  23.   if [ -d "$srcdir/$_gitname" ] ; then
  24.     cd "$_gitname" && git pull origin
  25.     msg "The local files are updated."
  26.   else
  27.     git clone "$_gitroot"
  28.   fi
  29.  
  30.   msg "GIT checkout done or server timeout"
  31.   msg "Starting make..."
  32.  
  33.   rm -rf "$srcdir/$_gitname-build"
  34.   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  35.   cd "$srcdir/$_gitname-build"
  36.  
  37.   make || return 1
  38.   make DESTDIR="$pkgdir" install || return 1
  39. }