1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
6 pkgdesc="Free Python library for accessing Datove schranky"
8 url="http://labs.nic.cz/page/740/dsgui/"
10 depends=('python2-pyopenssl')
11 makedepends=('python2-distribute')
13 _gitroot="git://git.nic.cz/dslib/"
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 rm -rf ${srcdir}/$_gitname-build
31 git clone ${srcdir}/$_gitname ${srcdir}/$_gitname-build
32 cd ${srcdir}/$_gitname-build
35 for file in $(find . -name '*.py' -print); do
36 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
37 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
40 python2 setup.py install --root=${pkgdir}