updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / evdaemon-git / PKGBUILD
blobaeb094c722f1fb959761f56805b8d26e11d586a2
1 # Maintainer: Marc Cousin <cousinmarc@gmail.com>
3 pkgname=evdaemon-git
4 pkgver=20100423
5 pkgrel=1
6 pkgdesc="Monitor Linux event devices and modify their behavior"
7 arch=('i686' 'x86_64')
8 url='http://codegrove.org/evdaemon/'
9 license=('GPL')
10 makedepends=('git')
11 source=()
12 md5sums=()
14 _gitroot="git://github.com/tuos/evdaemon.git"
15 _gitname="evdaemon"
17 build() {
18         cd ${srcdir}
19         msg "Connecting to GIT server...."
21         if [ -d ${srcdir}/$_gitname ] ; then
22         cd $_gitname && git pull origin
23         msg "The local files are updated."
24         else
25         git clone $_gitroot
26         fi
28         msg "GIT checkout done or server timeout"
29         msg "Starting make..."
31         git clone $_gitname $_gitname-build
32         cd ${srcdir}/$_gitname-build
33         #cd $_gitname-build
34         autoreconf -f -i
35         ./configure --prefix=/ --bindir=/usr/bin || return 1
36         make || return 1
37         make DESTDIR=${pkgdir} install || return 1
38