updated on Thu Jan 19 08:03:52 UTC 2012
[aur-mirror.git] / youtube-viewer / PKGBUILD
blob9cba06ebd1455b2a421664699e6044c527512a72
1 # Maintainer: Trizen <echo dHJpemVueEBnbWFpbC5jb20K | base64 -d>
3 pkgname=youtube-viewer
4 pkgver=20120119
5 pkgrel=1
6 pkgdesc="Youtube Viewer: Search and play YouTube videos with MPlayer."
7 arch=('any')
8 url="https://github.com/trizen/$pkgname"
9 license=('GPL')
10 makedepends=('git')
11 depends=('mplayer' 'perl-libwww' 'perl-xml-fast' 'perl-http-message' 'perl-net-http')
12 optdepends=("perl-lwp-protocol-https: for login and https support"
13             "gcap: for retrieving Youtube closed captions. [in AUR]")
14 _gitroot="git://github.com/trizen/$pkgname.git"
15 _gitname="$pkgname"
17 build() {
18     msg "Connecting to github GIT server..."
20     if [ -d $pkgname ]; then
21         cd $pkgname && git pull origin
22     else
23         git clone $_gitroot
25         cd $pkgname
26     fi
29 package() {
30     cd "$pkgname"
31     install -m 755 -D "$pkgname" "$pkgdir/usr/bin/$pkgname"