1 # Contributor: Vladimir Matveev <dpx.infinity at gmail point com>
3 # Note that in order to build this package you have to install haskell-dbus-core package,
4 # which depends on haskell-parsec-3.1 or above. Since haskell-parsec from extra repository
5 # won't upgrade to version 3 in foreseeable future you have to install it modified using
6 # cabal2arch as follows:
7 # % cabal2arch http://hackage.haskell.org/packages/archive/parsec/3.1.0/parsec.cabal
8 # Then modify PKGBUILD like this:
9 # pkgname=haskell-parsec -> pkgname=haskell-parsec3 (something like that)
10 # ln -s /usr/share/doc.../html/libraries/parsec -> ln -s /usr/share/doc.../html/libraries/parsec3
11 # and haskell-parsec.install file:
12 # HS_DIR=/usr/share/haskell/haskell-parsec -> HS_DIR=/usr/share/haskell/haskell-parsec3
13 # Then install package as usual - makepkg && pacman -U haskell-parsec3-whatever.pkg.tar.xz
14 # Now install haskell-dbus-core from AUR, modifying its PKGBUILD to depend on haskell-parsec3
15 # instead of haskell-parsec>=3.0 first. Then install haskell-dbus-client using your favourite
16 # program. DBus packages will bring some other dependencies though, but you can safely uninstall
17 # them after compiling, they are not run-time dependencies.
22 pkgdesc="UDisks events handler daemon"
23 arch=('i686' 'x86_64')
24 url="http://github.com/dpx-infinity/udisksevt"
26 depends=('udisks' 'polkit' 'consolekit' 'dbus' 'gmp')
27 makedepends=('git' 'ghc' 'haskell-dbus-core' 'haskell-dbus-client' 'haskell-text' 'haskell-stm')
28 conflicts=('udisksevt-git')
29 install=udisksevt.install
30 source=(https://github.com/downloads/dpx-infinity/udisksevt/$pkgname-$pkgver.tar.bz2)
31 md5sums=('0069d45a0eb2320c7cef021a76221410')
34 cd "$srcdir/$pkgname-$pkgver"
36 make configure || return 1
41 cd "$srcdir/$pkgname-$pkgver"
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
47 # vim:set ts=2 sw=2 et: