updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / videotop-git / PKGBUILD
blobfab2ae9fe083fb50fab73bd9dba9ff8b7783ce55
1 # Maintainer: intnull <intnull@rocketmail.com>
3 pkgname=videotop-git
4 pkgver=20110807
5 pkgrel=1
6 pkgdesc="A console browser for online videos for websites like YouTube"
7 arch=(any)
8 url="https://github.com/intnull/videotop"
9 license=('GPL')
10 depends=('python-urwid' 'python-gdata' 'youtube-dl')
11 optdepends=('mplayer: to play videos')
12 makedepends=('git')
13 provides=('videotop')
15 _gitroot="git://github.com/intnull/videotop.git"
16 _gitname="videotop"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
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: