haskell-bytestring-show: rebuilt and updated PKGBUILD

This commit is contained in:
utg 2014-04-17 23:03:47 +00:00
parent bb8453674b
commit caa640cbe6
2 changed files with 95 additions and 17 deletions

View File

@ -1,28 +1,41 @@
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrian Chaves Fernandez (Gallaecio) <adriyetichaves@gmail.com>
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
# Contributors: H W Tovetjärn (totte) <totte@tott.es>
# Stephen McIntosh <stephenmac7[at]gmail[dot]com>
# Thomas Dziedzic <gostrc@gmail.com>
# Vesa Kaihlavirta <vesa@archlinux.org>
# Arch Haskell Team <arch-haskell@haskell.org>
## NOTE: when you update Haskell packages you'll have to update the entire stack to not break it ##
_hkgname=bytestring-show
pkgname=haskell-bytestring-show
pkgver=0.3.5.4
pkgver=0.3.5.6
pkgrel=1
pkgdesc="Efficient conversion of values into readable byte strings."
url="http://hackage.haskell.org/package/bytestring-show"
license=("custom:BSD3")
license=("BSD3")
arch=('x86_64')
makedepends=()
depends=("ghc")
options=('staticlibs')
source=("http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz")
sha256sums=('2eeca94d240e5ea4f2676a3d1f8e291c00979dbad8dacc4d8f1d32a638d2dac3')
md5sums=('c9041eed86a52e17e6b53a415967f7cb')
install="${pkgname}.install"
build() {
cd ${srcdir}/${_hkgname}-${pkgver}
cd "${srcdir}/${_hkgname}-${pkgver}"
runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
--prefix=/usr --docdir=/usr/share/doc/${pkgname} \
# update outdated dependency
sed 's/build-depends: integer-gmp >= 0.2 && < 0.5/build-depends: integer-gmp >= 0.2 \&\& < 0.6/' -i bytestring-show.cabal
runhaskell Setup configure \
-O \
${PKGBUILD_HASKELL_ENABLE_PROFILING:+-p } \
--enable-split-objs \
--enable-shared \
--prefix=/usr \
--docdir="/usr/share/doc/${pkgname}" \
--libsubdir=\$compiler/site-local/\$pkgid
runhaskell Setup build
runhaskell Setup haddock
runhaskell Setup register --gen-script
@ -31,14 +44,21 @@ build() {
}
package() {
cd ${srcdir}/${_hkgname}-${pkgver}
depends=("ghc=`pacman -Q ghc | cut -f2 -d\ |cut -f1 -d-`")
cd "${srcdir}/${_hkgname}-${pkgver}"
install -D -m744 register.sh ${pkgdir}/usr/share/haskell/${pkgname}/register.sh
install -m744 unregister.sh ${pkgdir}/usr/share/haskell/${pkgname}/unregister.sh
install -d -m755 ${pkgdir}/usr/share/doc/ghc/html/libraries
ln -s /usr/share/doc/${pkgname}/html ${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}
runhaskell Setup copy --destdir=${pkgdir}
# Lincese.
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
# Documentation
ln -s "/usr/share/doc/${pkgname}/html" \
"${pkgdir}/usr/share/doc/ghc/html/libraries/${_hkgname}"
# License
install -D -m644 LICENSE \
"${pkgdir}/usr/share/licenses/haskell-bytestring-show/LICENSE"
rm -f "${pkgdir}/usr/share/doc/haskell-bytestring-show/LICENSE"
runhaskell Setup copy --destdir="${pkgdir}"
}

View File

@ -0,0 +1,58 @@
# # # helpful information # # #
When you update Haskell packages you'll have to update the entire stack to not break it.
To help you I wrote a simple guide step-by-step.
## NOTE: it's possible that some new haskell-package has been added to our repository, so before you update the entire stack you need to check it and then proceed
> First you have to update these packaes:
haskell-binary
haskell-bytestring-show
haskell-dataenc
haskell-deepseq
haskell-extensible-exceptions
haskell-html
haskell-mmap
haskell-primitive
haskell-random
haskell-syb
haskell-stm
haskell-terminfo
haskell-transformers
haskell-mtl
haskell-utf8-string
haskell-zlib
haskell-tar
> Then update one-by-one the following packages:
haskell-text
haskell-parsec
haskell-network
haskell-http
haskell-hslogger
haskell-vector
haskell-regex-base
haskell-regex-posix
haskell-regex-compat
haskell-hashed-storage
haskell-haskeline
> ...lastly you have to update this:
haskell-cabal-install