1 # Maintainer: Mark Foxwell <fastfret79@archlinux.org.uk>
2 # Contributor: AshtonBRSC <michael@ashtonbrsc.co.uk>
3 # Contributor: pluckypigeon <pluckypigeon@ArchForums.com>
6 pkgname=get_iplayer-git
9 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"
11 url="http://www.infradead.org/get_iplayer/html/get_iplayer.html"
13 depends=('perl-libwww' 'perl-html-parser' 'perl-www-mechanize')
14 optdepends=('rtmpdump' 'flvstreamer')
16 conflicts=('get-iplayer', 'get_iplayer')
17 provides=('get_iplayer')
19 _gitroot="git://git.infradead.org/get_iplayer.git"
20 _gitname="get_iplayer"
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
43 cd "$srcdir/$_gitname-build"
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 -D -m644 get_iplayer.1 ${pkgdir}/usr/share/man/man1/get_iplayer.1
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/
52 # vim:set ts=2 sw=2 et: