updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gtk2hs-glade / PKGBUILD
blob3a8ed87bd35fcb646ff7589e098555c1f6730c35
1 # $Id: PKGBUILD 19743 2010-06-28 16:42:14Z spupykin $
2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
4 pkgname=gtk2hs-glade
5 pkgrel=1
6 pkgver=0.11.0
7 pkgdesc="Binding to the glade library for Gtk2Hs."
8 url="http://hackage.haskell.org/package/glade"
9 license=('LGPL2.1')
10 arch=('i686' 'x86_64')
11 makedepends=()
12 depends=('ghc' 'haskell-cabal' 'haskell-containers' 'haskell-haskell98' 'gtk' 'gtk2hs-buildtools')
13 options=('strip')
14 source=(http://hackage.haskell.org/packages/archive/glade/$pkgver/glade-$pkgver.tar.gz)
15 install=gtk2hs-glade.install
16 md5sums=('d056065cbcfadd8252ecbe661ee2ab6c')
18 build() {
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')