1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
6 pkgdesc="GUI application allowing access to a 'Databox' - an electronic communication interface endorsed by the Czech government"
8 url="http://labs.nic.cz/page/740/dsgui/"
10 depends=('dslib-git' 'pygtk' 'python2-sqlalchemy' 'hicolor-icon-theme')
11 makedepends=('python2-distribute')
12 install=$pkgname.install
14 _gitroot="git://git.nic.cz/dsgui/"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
28 msg "GIT checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf ${srcdir}/$_gitname-build
32 git clone ${srcdir}/$_gitname ${srcdir}/$_gitname-build
33 cd ${srcdir}/$_gitname-build
36 for file in $(find . -name '*.py' -print); do
37 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
38 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
41 python2 setup.py install --root=${pkgdir}