# Maintainer: Trizen pkgname=youtube-viewer pkgver=20111011 pkgrel=1 pkgdesc="Youtube Viewer: Search and play YouTube videos with MPlayer." arch=('any') url="https://github.com/trizen/$pkgname" license=('GPL') makedepends=('git') depends=('mplayer' 'perl-libwww') optdepends=("gcap: for retrieving Youtube closed captions. [in AUR]") _gitroot="git://github.com/trizen/$pkgname.git" _gitname="$pkgname" build() { msg "Connecting to github GIT server..." if [ -d $pkgname ]; then cd $pkgname && git pull origin else git clone $_gitroot cd $pkgname fi } package() { cd $pkgname install -m 755 -D $pkgname "$pkgdir/usr/bin/$pkgname" }