1 # Maintainer: Matthew Bauer <mjbauer95@gmail.com>
2 # Contributor: Marvin Lampe <marvin.lampe@gmx.de>
3 pkgname=get-flash-videos-git
6 pkgdesc='Downloads videos from various Flash-based video hosting sites'
8 url='http://code.google.com/p/get-flash-videos/'
10 depends=('perl-www-mechanize' 'perl')
11 makedepends=('git' 'perl' 'perl-universal-require')
12 optdepends=('mplayer: necessary for video streaming')
13 conflicts=('get-flash-videos-svn' 'get_flash_videos')
14 provides=('get-flash-videos-svn' 'get_flash_videos' 'get-flash-videos')
16 _gitroot=git://github.com/monsieurvideo/get-flash-videos.git
17 _gitname=get-flash-videos
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
46 cd "$srcdir/$_gitname-build"
47 make install DESTDIR=${pkgdir} INSTALL_BASE=/usr INSTALLSITELIB=/usr/lib/perl5/site_perl