1 # Maintainer: Andrew Grigorev <andrew@ei-grad.ru>
6 pkgdesc="Simple digital clock in python and termbox for command line."
8 url="http://github.com/ei-grad/pytbclock"
10 depends=('python-termbox-git' 'python2')
13 _gitroot='git://github.com/ei-grad/pytbclock.git'
18 msg "Connecting to GIT server...."
20 if [ -d $_gitname ] ; then
21 cd $_gitname && git pull origin
22 msg "The local files are updated."
24 git clone $_gitroot $_gitname
27 msg "GIT checkout done or server timeout"
28 msg "Starting make..."
30 cd "$srcdir/$_gitname"
32 sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
33 -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,' pytbclock.py
35 install -D -m755 pytbclock.py "$pkgdir/usr/bin/pytbclock"