updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / pytbclock / PKGBUILD
blob871c1b1ac41327a278a805cd075afdeded2f7d98
1 # Maintainer: Andrew Grigorev <andrew@ei-grad.ru>
3 pkgname=pytbclock
4 pkgver=20101022
5 pkgrel=2
6 pkgdesc="Simple digital clock in python and termbox for command line."
7 arch=('i686' 'x86_64')
8 url="http://github.com/ei-grad/pytbclock"
9 license=('MIT')
10 depends=('python-termbox-git' 'python2')
11 makedepends=('git')
13 _gitroot='git://github.com/ei-grad/pytbclock.git'
14 _gitname='pytbclock'
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   cd "$srcdir/$_gitname"
31   
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"
36