1 # Contributor: sausageandeggs <sausageandeggs@archlinux.us>
3 pkgname=pydbusdecorator-git
6 pkgdesc="Python decorator for dbus interfaces"
8 url="https://github.com/hugosenari/pydbusdecorator"
13 _gitroot="git://github.com/hugosenari/pydbusdecorator"
14 _gitname="pydbusdecorator"
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
26 msg "GIT checkout done or server timeout"
28 rm -rf "$srcdir/$_gitname-build"
29 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
30 cd "$srcdir/$_gitname-build"
32 sed -i -e 's|#!/usr/bin/python$|#!/usr/bin/python2|' $(find ./ -name '*.py')
34 msg "Running setup.py..."
35 python2 setup.py -q install --root="${pkgdir}" --optimize=1