updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / get_iplayer-git / PKGBUILD
blob87048eb34702205493da899f7d270674176ebcee
1 # Maintainer: Mark Foxwell <fastfret79@archlinux.org.uk>
2 # Contributor: AshtonBRSC <michael@ashtonbrsc.co.uk>
3 # Contributor: pluckypigeon <pluckypigeon@ArchForums.com>
4 # Contributor: canton7
6 pkgname=get_iplayer-git
7 pkgver=20110905
8 pkgrel=1
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"
10 arch=('any')
11 url="http://www.infradead.org/get_iplayer/html/get_iplayer.html"
12 license=('GPL3')
13 depends=('perl-libwww' 'perl-html-parser' 'perl-www-mechanize')
14 optdepends=('rtmpdump' 'flvstreamer')
15 makedepends=('git')
16 conflicts=('get-iplayer', 'get_iplayer')
17 provides=('get_iplayer')
19 _gitroot="git://git.infradead.org/get_iplayer.git"
20 _gitname="get_iplayer"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
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"
42 package() {
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: