2013-12-13 06:32:36 +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 10:20:24 +08:00
|
|
|
_hkgname=terminfo
|
2011-01-30 00:34:09 +08:00
|
|
|
pkgname=haskell-terminfo
|
2013-12-13 06:32:36 +08:00
|
|
|
pkgver=0.3.2.6
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Haskell bindings to the terminfo library"
|
|
|
|
url="http://hackage.haskell.org/package/terminfo"
|
2012-06-17 10:20:24 +08:00
|
|
|
license=('custom:BSD3')
|
2013-12-13 06:32:36 +08:00
|
|
|
arch=('x86_64')
|
2012-06-17 10:20:24 +08:00
|
|
|
makedepends=()
|
2013-12-13 06:32:36 +08:00
|
|
|
depends=('ghc=7.6.3-1' 'haskell-base>=4.0' 'haskell-base<5')
|
2012-06-17 10:20:24 +08:00
|
|
|
options=('strip')
|
2013-12-13 06:32:36 +08:00
|
|
|
source=("http://hackage.haskell.org/packages/archive/terminfo/0.3.2.5/terminfo-0.3.2.5.tar.gz")
|
|
|
|
install="haskell-terminfo.install"
|
|
|
|
sha512sums=('68a882e6abb6a2e3ee70398761b899d635bfd96118b47437efeb6bc7b1a1d81a3c3e1a7f696d86057d2f8a8dece270ae9005d7905a6da97f12bcf8113ac70203')
|
|
|
|
|
2011-01-30 00:34:09 +08:00
|
|
|
build() {
|
2013-12-13 06:32:36 +08:00
|
|
|
cd "${srcdir}/terminfo-0.3.2.5"
|
|
|
|
runhaskell Setup configure \
|
|
|
|
-O \
|
|
|
|
${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } \
|
|
|
|
--enable-split-objs \
|
|
|
|
--enable-shared \
|
|
|
|
--prefix="/usr" \
|
|
|
|
--docdir="/usr/share/doc/haskell-terminfo" \
|
|
|
|
--libsubdir='$compiler/site-local/$pkgid'
|
2012-06-17 10:20:24 +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
|
2011-10-10 02:06:48 +08:00
|
|
|
}
|
2013-12-13 06:32:36 +08:00
|
|
|
|
2011-01-30 00:34:09 +08:00
|
|
|
package() {
|
2013-12-13 06:32:36 +08:00
|
|
|
cd "${srcdir}/terminfo-0.3.2.5"
|
|
|
|
install -D -m744 register.sh \
|
|
|
|
"${pkgdir}/usr/share/haskell/haskell-terminfo/register.sh"
|
|
|
|
install -m744 unregister.sh \
|
|
|
|
"${pkgdir}/usr/share/haskell/haskell-terminfo/unregister.sh"
|
|
|
|
install -d -m755 "${pkgdir}/usr/share/doc/ghc/html/libraries"
|
|
|
|
|
|
|
|
# Documentation
|
|
|
|
ln -s "/usr/share/doc/haskell-terminfo/html" \
|
|
|
|
"${pkgdir}/usr/share/doc/ghc/html/libraries/terminfo"
|
|
|
|
|
|
|
|
# License
|
|
|
|
install -D -m644 LICENSE \
|
|
|
|
"${pkgdir}/usr/share/licenses/haskell-terminfo/LICENSE"
|
|
|
|
rm -f "${pkgdir}/usr/share/doc/haskell-terminfo/LICENSE"
|
|
|
|
|
|
|
|
runhaskell Setup copy --destdir="${pkgdir}"
|
2011-01-30 00:34:09 +08:00
|
|
|
}
|