1 # Contributor: Vladimir Matveev <dpx.infinity at gmail point com>
2 # Modified haskell-dbus-client package; uses haskell-dbus-core-parsec3 as a dependency
3 pkgname=haskell-dbus-client-parsec3
4 _pkgname=haskell-dbus-client
7 pkgdesc="Monadic and object-oriented interfaces to DBus"
8 url="http://hackage.haskell.org/package/dbus-client"
10 arch=('i686' 'x86_64')
11 provides=('haskell-dbus-client=0.3')
12 conflicts=('haskell-dbus-client')
14 depends=('ghc' 'haskell-cabal' 'haskell-containers' 'haskell-dbus-core-parsec3' 'haskell-text')
16 source=(http://hackage.haskell.org/packages/archive/dbus-client/0.3/dbus-client-0.3.tar.gz)
17 install=haskell-dbus-client.install
18 md5sums=('ec4ec473a658d183fb2cf2cd99aed6a7')
20 cd ${srcdir}/dbus-client-0.3
21 runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${_pkgname} || return 1
22 runhaskell Setup build || return 1
23 runhaskell Setup haddock || return 1
24 runhaskell Setup register --gen-script || return 1
25 runhaskell Setup unregister --gen-script || return 1
26 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/$_pkgname/register.sh
27 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/$_pkgname/unregister.sh
28 install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
29 ln -s /usr/share/doc/${_pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/dbus-client
30 runhaskell Setup copy --destdir=${pkgdir} || return 1