# Apps Packages for Chakra, part of www.chakra-project.org # Maintainer: H W Tovetjärn (totte) # Contributors: Stephen McIntosh # Thomas Dziedzic # Vesa Kaihlavirta # Arch Haskell Team _hkgname=text pkgname=haskell-text pkgver=0.11.3.1 pkgrel=1 pkgdesc="An efficient packed Unicode text type" url="http://hackage.haskell.org/package/text" license=('custom:BSD3') arch=('x86_64' 'i686') makedepends=() depends=('ghc=7.6.3-1' 'haskell-array' 'haskell-base>=4.0' 'haskell-bytestring>=0.9' 'haskell-deepseq>=1.1.0.0' 'haskell-ghc-prim') options=('strip') source=("http://hackage.haskell.org/packages/archive/text/0.11.3.1/text-0.11.3.1.tar.gz") install="haskell-text.install" sha512sums=('78e9b795ebcb4e43be42b34c3f5829e0f5030d93cb6dad59ca2eb4c7df3a5e338f65dc9f90da7b752cf2b1c15e8d973a25293a6418a4abed6e0ddac9222fb3e6') build() { cd "${srcdir}/text-0.11.3.1" runhaskell Setup configure \ -O \ ${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } \ --enable-split-objs \ --enable-shared \ --prefix="/usr" \ --docdir="/usr/share/doc/haskell-text" \ --libsubdir='$compiler/site-local/$pkgid' runhaskell Setup build runhaskell Setup haddock runhaskell Setup register --gen-script runhaskell Setup unregister --gen-script sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh } package() { cd "${srcdir}/text-0.11.3.1" install -D -m744 register.sh \ "${pkgdir}/usr/share/haskell/haskell-text/register.sh" install -m744 unregister.sh \ "${pkgdir}/usr/share/haskell/haskell-text/unregister.sh" install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries" # Documentation ln -s "/usr/share/doc/haskell-text/html" \ "${pkgdir}/usr/share/doc/ghc/html/libraries/text" # License install -D -m644 LICENSE \ "${pkgdir}/usr/share/licenses/haskell-text/LICENSE" rm -f "${pkgdir}/usr/share/doc/haskell-text/LICENSE" runhaskell Setup copy --destdir="${pkgdir}" }