updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pyinotify2-git / PKGBUILD
blob57292691a8e8159cb883044a026823b6c00ca954
1 # Maintainer: M Rawash <mrawash@gmail.com>
2 # Maintainer: wido <widomaker2k7@gmail.com>
4 pkgname=pyinotify2-git
5 pkgver=20101110
6 pkgrel=2
7 pkgdesc="Python2 bindings for inotify - git version"
8 arch=('any')
9 url="http://trac.dbzteam.org/pyinotify"
10 license=('GPL')
11 depends=('kernel26>=2.6.13' 'python2')
12 provides=('pyinotify2')
13 conflicts=('pyinotify2')
14 replaces=('pyinotify2')
16 _gitroot="https://github.com/seb-m/pyinotify.git"
17 _gitname="pyinotify"
19 build() {
20   msg "Connecting to gitorious.org GIT server...."
22 if [ -d $srcdir/$_gitname ] ; then
23    cd $_gitname && git pull origin
24    msg "The local files are updated."
25 else
26    git clone $_gitroot
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf ${srcdir}/${_gitname}-build
33 cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
35   cd $srcdir/$_gitname-build
36   python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1