5 # PKGBUILD options/directives
9 pkgdesc="A small library for parsing IRC messages."
10 url="http://hackage.haskell.org/package/${_hkgname}"
12 arch=('i686' 'x86_64')
14 depends=("ghc=7.0.3-2"
16 "haskell-parsec=3.1.1")
18 source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz"
20 install="${pkgname}.install"
21 sha256sums=("27e93022372431ae5b70cc4125334c710fd41e356d648b02ffe07f6956a57dad"
22 "f9b2bcfcae24c6f6acc59cdc3daf271e26a2933234eff613c0748a7881f336e2")
26 cd ${srcdir}/${_hkgname}-${pkgver}
27 patch irc.cabal ${srcdir}/cabal.patch
28 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
29 --prefix=/usr --docdir=/usr/share/doc/${pkgname} \
30 --libsubdir=\$compiler/site-local/\$pkgid
31 runhaskell Setup build
32 runhaskell Setup haddock
33 runhaskell Setup register --gen-script
34 runhaskell Setup unregister --gen-script
35 sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
39 cd ${srcdir}/${_hkgname}-${pkgver}
40 install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
41 install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
42 install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
43 ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
44 runhaskell Setup copy --destdir=${pkgdir}
45 install -D -m644 ${_licensefile} ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
46 rm -f ${pkgdir}/usr/share/doc/${pkgname}/${_licensefile}