Want more features on Pastebin? Sign Up, it's FREE!
Guest

pianobar-git PKGBUILD

By: a guest on Jun 12th, 2010  |  syntax: None  |  size: 1.19 KB  |  views: 174  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: MutantMonkey <mutantmonkey@gmail.com>
  2.  
  3. pkgname=pianobar-git
  4. pkgver=20100612
  5. pkgrel=1
  6. pkgdesc="A free/open-source, console-based replacement for Pandora's Flash player"
  7. arch=('i686' 'x86_64')
  8. url="http://uint16.ath.cx/software/pandora_client.en.html"
  9. license=('MIT')
  10. depends=('libao' 'faad2')
  11. optdepends=('libmad')
  12. makedepends=('pkgconfig>=0.9' 'git' 'automake' 'cmake')
  13. provides=('pianobar')
  14. source=()
  15. md5sums=()
  16.  
  17. _gitroot="git://github.com/PromyLOPh/pianobar.git"
  18. _gitname="pianobar"
  19.  
  20. build() {
  21.         cd $startdir/src/
  22.         msg "Connecting to the pianobar git repository..."
  23.  
  24.         if [ -d $startdir/src/$_gitname ] ; then
  25.                 cd $_gitname && git pull origin
  26.                 msg "The local files are updated."
  27.         else
  28.                 git clone $_gitroot
  29.         fi
  30.  
  31.         msg "GIT checkout done or server timeout"
  32.         msg "Starting make..."
  33.  
  34.         rm -rf $startdir/src/$_gitname-build   
  35.         cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
  36.         cd $startdir/src/$_gitname-build/      
  37.  
  38.         #mkdir build && cd build
  39.         make || return 1
  40.         make DESTDIR=$startdir/pkg PREFIX=/usr install || return 1
  41. mkdir -p $startdir/pkg/usr/share/licenses/$pkgname
  42. cp $startdir/src/$_gitname-build/COPYING $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
  43. }
clone this paste RAW Paste Data