Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

canton7

By: a guest on Jan 27th, 2011  |  syntax: Bash  |  size: 1.46 KB  |  views: 29  |  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. # Maintainer: AshtonBRSC <michael@ashtonbrsc.co.uk>
  2. # Contributor: pluckypigeon <pluckypigeon@ArchForums.com>
  3.  
  4. pkgname=get_iplayer
  5. pkgver=20110109
  6. pkgrel=1
  7. pkgdesc="Allows you to download or stream any iPlayer programme from the BBC in H.264 (Quicktime/mp4) format, any radio programmes in MP3 or RealAudio format"
  8. arch=('any')
  9. url="http://git.infradead.org/get_iplayer.git"
  10. license=('GPL3')
  11. depends=('perl-libwww' 'perl-html-parser' 'perl-www-mechanize')
  12. optdepends=('rtmpdump' 'flvstreamer')
  13. makedepends=('git')
  14. conflicts=('get-iplayer', 'get_iplayer')
  15. backup=(etc/get_iplayer/options)
  16. provides=('get_iplayer')
  17. source=('options')
  18. md5sums=('966cf991f9c106da28940b45c37c0b11')
  19.  
  20. _gitroot="git://git.infradead.org/get_iplayer.git"
  21. _gitname="get_iplayer"
  22.  
  23. build() {
  24.   cd "$srcdir"
  25.   msg "Connecting to GIT server...."
  26.  
  27.   if [ -d $_gitname ] ; then
  28.     cd $_gitname && git pull origin
  29.     msg "The local files are updated."
  30.   else
  31.     git clone $_gitroot $_gitname
  32.   fi
  33.  
  34.   msg "GIT checkout done or server timeout"
  35. }
  36.  
  37. package() {
  38.         cd "$srcdir/$_gitname"
  39.         install -m755 -D get_iplayer $pkgdir/usr/bin/get_iplayer
  40.         install -m644 -D README.txt $pkgdir/usr/share/doc/get_iplayer/README.txt
  41.         install -m644 -D $srcdir/options $pkgdir/etc/get_iplayer/options
  42.         install -m755 -d $pkgdir/usr/share/get_iplayer/plugins
  43.         install -m644 plugins/*.plugin $pkgdir/usr/share/get_iplayer/plugins/
  44.         install -m755 plugins/plugin.template $pkgdir/usr/share/get_iplayer/plugins/
  45. }