mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
37 lines
831 B
Bash
37 lines
831 B
Bash
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
|
|
|
|
pkgname=pyinotify
|
|
pkgver=20090614
|
|
pkgrel=1
|
|
pkgdesc="Python bindings for inotify"
|
|
arch=('i686' 'x86_64')
|
|
url="http://trac.dbzteam.org/pyinotify"
|
|
license=('GPL')
|
|
depends=('kernel26>=2.6.13' 'python')
|
|
makedepends=('git')
|
|
provides=('pyinotify=0.8.1')
|
|
|
|
_gitroot="http://git.dbzteam.org/pyinotify.git/"
|
|
_gitname="pyinotify"
|
|
|
|
build() {
|
|
msg "Connecting to GIT server...."
|
|
|
|
if [[ -d $srcdir/$_gitname ]] ; then
|
|
cd $_gitname
|
|
git-pull origin || return 1
|
|
msg "The local files are updated."
|
|
else
|
|
git clone $_gitroot || return 1
|
|
fi
|
|
|
|
msg "GIT checkout done"
|
|
msg "Starting make..."
|
|
|
|
|
|
rm -rf ${srcdir}/$_gitname-build
|
|
cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
|
|
cd ${srcdir}/${pkgname}-build
|
|
python setup.py install --prefix=/usr --root=${pkgdir} || return 1
|
|
}
|
|
|