updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pydbusdecorator-git / PKGBUILD
bloba4db438be2784cef33fe1a4ac4cff4994a55e012
1 # Contributor: sausageandeggs <sausageandeggs@archlinux.us>
3 pkgname=pydbusdecorator-git
4 pkgver=20111221
5 pkgrel=1
6 pkgdesc="Python decorator for dbus interfaces"
7 arch=(any)
8 url="https://github.com/hugosenari/pydbusdecorator"
9 license=('GPL')
10 depends=('python2')
11 makedepends=('git')
13 _gitroot="git://github.com/hugosenari/pydbusdecorator"
14 _gitname="pydbusdecorator"
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
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')
33   
34   msg "Running setup.py..."
35   python2 setup.py -q install --root="${pkgdir}" --optimize=1
36