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

pianobar-git PKGBUILD

By: a guest on Apr 26th, 2012  |  syntax: Bash  |  size: 1.18 KB  |  views: 44  |  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. # Maintainer: MutantMonkey <mutantmonkey@gmail.com>
  2. pkgname=pianobar-git
  3. pkgver=20120426
  4. pkgrel=1
  5. pkgdesc="A free/open-source, console-based replacement for Pandora's Flash player"
  6. url="http://6xq.net/0017"
  7. arch=('i686' 'x86_64')
  8. license=('MIT')
  9. depends=('libao' 'faad2' 'libmad' 'readline')
  10. optdepends=('libmad')
  11. makedepends=('pkgconfig>=0.9' 'git' 'automake')
  12. provides=('pianobar')
  13. conflicts=('pianobar')
  14. source=(pianobar.patch)
  15. md5sums=( 5805e5f662733a0ee6c395270483b526 )
  16.  
  17. _gitroot="https://github.com/PromyLOPh/pianobar.git"
  18. _gitname="pianobar"
  19.  
  20. build() {
  21.         cd $srcdir
  22.         msg "Connecting to the pianobar git repository..."
  23.  
  24.         if [ -d $srcdir/$_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 $srcdir/$_gitname-build 
  35.         cp -r $srcdir/$_gitname $srcdir/$_gitname-build
  36.         cd $srcdir/$_gitname-build/
  37.  
  38.         patch -Np1 -i ${srcdir}/pianobar.patch
  39.  
  40.         make
  41.         make DESTDIR=$pkgdir PREFIX=/usr install
  42.  
  43.         install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  44.         install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
  45. }
clone this paste RAW Paste Data