1 # Contributor: Vladimir Matveev <dpx.infinity at gmail point com>
6 pkgdesc="UDisks events handler daemon - git version"
8 url="http://github.com/dpx-infinity/udisksevt/"
10 depends=('udisks' 'polkit' 'consolekit' 'dbus' 'gmp')
11 makedepends=('git' 'ghc' 'haskell-dbus-core' 'haskell-dbus-client3' 'haskell-text' 'haskell-stm')
12 conflicts=('udisksevt')
13 install="udisksevt.install"
15 _gitroot="git://github.com/dpx-infinity/udisksevt.git"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone -b dbus-client-0.3 $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
36 make configure || return 1
41 cd "$srcdir/$_gitname-build"
43 install -m755 -D ./dist/build/udisksevt/udisksevt $pkgdir/usr/bin/udisksevt || return 1
44 install -m644 -D ./udisksevt.conf $pkgdir/usr/share/$pkgname/udisksevt.conf.example || return 1