1 # Contrubutor: Alexander Kreuzer <alex@freesources.org>
2 # based on hlint package from
3 # Arch Haskell Team <arch-haskell@haskell.org>
7 pkgdesc="Source code suggestions (darcs version)"
8 url="http://community.haskell.org/~ndm/hlint/"
10 arch=('i686' 'x86_64')
12 depends=('ghc' 'haskell-cpphs' 'haskell-haskell-src-exts>=1.11' 'haskell-hscolour' 'haskell-mtl' 'haskell-uniplate')
13 provides=('hlint=1.8.20' 'haskell-hlint=1.8.20')
20 _darcstrunk="http://community.haskell.org/~ndm/darcs"
25 # Erasing previous build
26 msg "Checking for previous build"
28 if [[ -d $_darcsmod/_darcs ]]
30 msg "Retrieving missing patches"
32 darcs pull -a $_darcstrunk/$_darcsmod
34 msg "Retrieving complete sources"
35 darcs get --partial --set-scripts-executable $_darcstrunk/$_darcsmod
39 runhaskell Setup configure --prefix=/usr --docdir=/usr/share/doc/${pkgname}
40 runhaskell Setup build
41 runhaskell Setup haddock
42 runhaskell Setup register --gen-script
43 runhaskell Setup unregister --gen-script
48 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/$pkgname/register.sh
49 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/$pkgname/unregister.sh
50 install -d -m755 $pkgdir/usr/share/doc/ghc/html/libraries
51 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/hlint
52 runhaskell Setup copy --destdir=${pkgdir}