1 # Maintainer: Leif Warner <abimelech@gmail.com>
3 pkgname=xmonad-extras-darcs
6 pkgdesc="Third party extensions for xmonad with wacky dependencies"
7 url="http://hackage.haskell.org/package/${_hkgname}"
8 license=('custom:BSD3')
11 provides=('xmonad-extras')
12 conflicts=('xmonad-extras')
13 depends=('gmp' 'ghc' 'haskell-x11>=1.4.3' 'haskell-containers=0.4.0.0' 'haskell-directory=1.1.0.0' 'haskell-mtl=2.0.1.0' 'haskell-old-locale=1.0.0.2' 'haskell-old-time=1.0.0.6' 'haskell-process=1.0.1.5' 'haskell-random=1.0.0.3' 'haskell-unix=2.4.2.0' 'xmonad-darcs' 'xmonad-contrib-darcs'
14 # Uncomment the following two lines for XMonad.Actions.Volume
15 'haskell-parsec=3.1.1'
17 # Uncomment this for XMonad.Prompt.MPD
18 # 'haskell-libmpd<0.7'
19 # Uncomment this for XMonad.Util.WindowPropertiesRE
20 # 'haskell-regex-posix=0.94.4'
21 # Uncomment these two lines for XMonad.Actions.Eval & XMonad.Prompt.Eval
23 # 'haskell-network=2.3.0.2'
24 # Uncomment these two lines for XMonad.Config.Alt
26 # 'haskell-template-haskell=2.5.0.0'
30 install=${pkgname}.install
32 _darcsmod="xmonad-extras"
33 _darcstrunk="http://code.haskell.org"
37 if [[ -d ${srcdir}/$_darcsmod/_darcs ]]
39 msg "Retrieving missing patches"
41 darcs pull -a $_darcstrunk/$_darcsmod
43 msg "Retrieving complete sources"
44 darcs get --partial --set-scripts-executable $_darcstrunk/$_darcsmod
47 runhaskell Setup configure -O ${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } --enable-split-objs \
48 --prefix=/usr --docdir=/usr/share/doc/${pkgname} --libsubdir=\$compiler/site-local/\$pkgid
49 runhaskell Setup build
50 runhaskell Setup haddock
51 runhaskell Setup register --gen-script
52 runhaskell Setup unregister --gen-script
53 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
56 cd ${srcdir}/${_hkgname}
57 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
58 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
59 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
60 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
61 runhaskell Setup copy --destdir=${pkgdir}
62 install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
63 rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE