1 # Contributor: Matt Kemp <matt@mattikus.com>
6 pkgdesc="Python command line interface with gist.github.com"
7 url="http://github.com/mattikus/pygist/tree/master"
11 optdepends=('git: utilizes git-config to gather user information for github'
12 'xclip: will yank pastes to clipboard automagically')
17 _gitroot="git://github.com/mattikus/pygist.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 make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39 cd ${srcdir}/$_gitname-build
41 install -m755 pygist.py -D ${pkgdir}/usr/bin/pygist