1 # Contributor: adam vogt <vogt.adam<<at>>gmail.com>
2 # Package generated by cabal2arch 0.6
6 pkgdesc="A tiling window manager"
7 url="http://xmonad.org"
8 license=('custom:BSD3')
11 depends=('gmp' 'libxinerama')
12 optdepends=('ghc: for customizing' 'haskell-x11: for customizing' )
13 makedepends=('darcs' 'ghc' 'haskell-x11>=1.5' 'haskell-utf8-string'
14 'haskell-hscolour' 'haskell-mtl')
17 install=xmonad.install
19 _darcstrunk="http://code.haskell.org"
25 if [[ -d $startdir/src/$_darcsmod/_darcs ]]
27 msg "Retrieving missing patches"
29 darcs pull -a $_darcstrunk/$_darcsmod
31 msg "Retrieving complete sources"
32 darcs get --partial --set-scripts-executable $_darcstrunk/$_darcsmod
34 cd $startdir/src/$_darcsmod
36 runhaskell Setup configure --prefix=/usr --flags="use_xft use_utf8" --docdir=/usr/share/doc/${pkgname} || return 1
37 runhaskell Setup build || return 1
38 runhaskell Setup haddock --hyperlink-source || return 1
39 runhaskell Setup register --gen-script || return 1
40 runhaskell Setup unregister --gen-script || return 1
41 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/$pkgname/register.sh
42 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
43 install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
44 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/xmonad
45 runhaskell Setup copy --destdir=${pkgdir} || return 1
46 install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE || return 1
47 rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE