1 # Contributor: Cyker Way <cykerway at gmail dot com>
6 pkgdesc="A [Python + Curses]-based MPD client."
8 url="http://ncmpy.cykerway.com/"
10 depends=('python2' 'python2-httplib2' 'python-mpd' 'python-lxml' 'pyosd')
17 _gitroot="git://github.com/cykerway/ncmpy.git"
22 msg "Connecting to GIT server...."
24 if [[ -d "$_gitname" ]]; then
25 cd "$_gitname" && git pull origin
26 msg "The local files are updated."
28 git clone "$_gitroot" "$_gitname"
31 msg "GIT checkout done or server timeout"
32 msg "Starting build..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
45 cd "$srcdir/$_gitname-build"
46 python2 setup.py install --root="$pkgdir/" --optimize=1
49 # vim:set ts=2 sw=2 et: