1 # $Id: PKGBUILD 19743 2010-06-28 16:42:14Z spupykin $
2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
7 pkgdesc="Binding to the glade library for Gtk2Hs."
8 url="http://hackage.haskell.org/package/glade"
10 arch=('i686' 'x86_64')
12 depends=('ghc' 'haskell-cabal' 'haskell-containers' 'haskell-haskell98' 'gtk' 'gtk2hs-buildtools')
14 source=(http://hackage.haskell.org/packages/archive/glade/$pkgver/glade-$pkgver.tar.gz)
15 install=gtk2hs-glade.install
16 md5sums=('d056065cbcfadd8252ecbe661ee2ab6c')
19 cd ${srcdir}/glade-$pkgver
20 runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname} || return 1
21 runhaskell Setup build || return 1
22 runhaskell Setup haddock || return 1
23 runhaskell Setup register --gen-script || return 1
24 runhaskell Setup unregister --gen-script || return 1
25 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/$pkgname/register.sh
26 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
27 install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
28 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/glade
29 runhaskell Setup copy --destdir=${pkgdir} || return 1
31 md5sums=('687025867c203803af0b8238f3050b85')