desktop/haskell-text/PKGBUILD

59 lines
2.1 KiB
Bash
Raw Normal View History

2013-12-13 06:46:44 +08:00
# Apps Packages for Chakra, part of www.chakra-project.org
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
# Contributors: Stephen McIntosh <stephenmac7[at]gmail[dot]com>
# Thomas Dziedzic <gostrc@gmail.com>
# Vesa Kaihlavirta <vesa@archlinux.org>
# Arch Haskell Team <arch-haskell@haskell.org>
2012-06-17 07:52:23 +08:00
_hkgname=text
pkgname=haskell-text
2013-12-13 06:46:44 +08:00
pkgver=1.0.0.0
pkgrel=1
2013-12-13 06:46:44 +08:00
pkgdesc="An efficient packed Unicode text type"
url="http://hackage.haskell.org/package/text"
2012-06-17 07:52:23 +08:00
license=('custom:BSD3')
2013-12-13 06:46:44 +08:00
arch=('x86_64')
2012-06-17 07:52:23 +08:00
makedepends=()
2013-12-13 06:46:44 +08:00
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')
2012-06-17 07:52:23 +08:00
options=('strip')
2013-12-13 06:46:44 +08:00
source=("http://hackage.haskell.org/packages/archive/text/${pkgver}/text-${pkgver}.tar.gz")
install="haskell-text.install"
sha512sums=('9f6bf41e65c08840dffc1c1cd7d3c70a6dc6c7b6f3accce20f9c4b724c3b70cf79f5e14aba930a39347be4a89e4a29b0fdb004d2349c7fa210b5daddd84d74b5')
build() {
2013-12-13 06:46:44 +08:00
cd "${srcdir}/text-${pkgver}"
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'
2012-06-17 07:52:23 +08:00
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
}
2013-12-13 06:46:44 +08:00
2011-10-10 02:06:48 +08:00
package() {
2013-12-13 06:46:44 +08:00
cd "${srcdir}/text-${pkgver}"
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}"
2011-10-10 02:06:48 +08:00
}