updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / get-flash-videos-git / PKGBUILD
blob1762037742f4ae99322f0b1203ce0145ab1168ab
1 # Maintainer: Matthew Bauer <mjbauer95@gmail.com>
2 # Contributor: Marvin Lampe <marvin.lampe@gmx.de>
3 pkgname=get-flash-videos-git
4 pkgver=20110628
5 pkgrel=2
6 pkgdesc='Downloads videos from various Flash-based video hosting sites'
7 arch=('x86_64' 'i686')
8 url='http://code.google.com/p/get-flash-videos/'
9 license=('APACHE')
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
19 build() {
20   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
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"
38   #
39   # BUILD
40   #
42   make
45 package(){
46   cd "$srcdir/$_gitname-build"
47   make install DESTDIR=${pkgdir} INSTALL_BASE=/usr INSTALLSITELIB=/usr/lib/perl5/site_perl