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

canton7

By: a guest on Jan 9th, 2011  |  syntax: None  |  size: 1.52 KB  |  views: 36  |  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: 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')
  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.   #msg "Starting make..."
  36.  
  37.   #rm -rf "$srcdir/$_gitname-build"
  38.   #git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  39.   #cd "$srcdir/$_gitname-build"
  40. }
  41.  
  42. package() {
  43.         cd "$srcdir/$_gitname"
  44.         install -m755 -D get_iplayer $pkgdir/usr/bin/get_iplayer
  45.         install -m644 -D README.txt $pkgdir/usr/share/doc/get_iplayer/README.txt
  46.         install -m644 -D $srcdir/options $pkgdir/etc/get_iplayer/options
  47.         install -m755 -d $pkgdir/usr/share/get_iplayer/plugins
  48.         install -m644 plugins/*.plugin $pkgdir/usr/share/get_iplayer/plugins/
  49.         install -m755 plugins/plugin.template $pkgdir/usr/share/get_iplayer/plugins/
  50. }
clone this paste RAW Paste Data