updated on Fri Jan 13 08:00:32 UTC 2012
[aur-mirror.git] / gtk-youtube-viewer / PKGBUILD
blob0f234f9fd5203bf17e05a0cc243e77213d008444
1 # Maintainer: Trizen <echo dHJpemVueEBnbWFpbC5jb20K | base64 -d>
3 pkgname=gtk-youtube-viewer
4 pkgver=20120113
5 pkgrel=1
6 pkgdesc="Gtk2 interface for YouTube-Viewer (
7 http://aur.archlinux.org/packages.php?ID=37779 )"
8 arch=('any')
9 url="https://github.com/trizen/gtk-youtube-viewer"
10 license=('GPL')
11 makedepends=('git')
12 depends=('gtk2-perl' 'mplayer' 'perl-libwww' 'perl-xml-fast')
13 optdepends=("perl-lwp-protocol-https: for https support"
14             "gcap: for retrieving Youtube closed captions. [in AUR]")
15 _gitroot="git://github.com/trizen/$pkgname.git"
16 _gitname="$pkgname"
18 build() {
19     msg "Connecting to github GIT server...."
21     if [ -d $pkgname ] ; then
22         cd $pkgname && git pull origin
23     else
24         git clone "$_gitroot"
25     fi
27 package() {
28   cd $pkgname
29   make DESTDIR="$pkgdir" install