1 # Maintainer: intnull <intnull@rocketmail.com>
6 pkgdesc="A console browser for online videos for websites like YouTube"
8 url="https://github.com/intnull/videotop"
10 depends=('python-urwid' 'python-gdata' 'youtube-dl')
11 optdepends=('mplayer: to play videos')
15 _gitroot="git://github.com/intnull/videotop.git"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
35 msg "Running setup.py..."
36 python2 setup.py -q install --root="$pkgdir" --optimize=1
39 # vim:set ts=2 sw=2 et: