haskell-parsec update to 3.1.5-1

This commit is contained in:
utg 2014-04-17 23:18:28 +00:00
parent 5cc41812f6
commit 54c15902fe
2 changed files with 97 additions and 16 deletions

View File

@ -1,23 +1,36 @@
# Maintainer: Stephen McIntosh <stephenmac7[at]gmail[dot]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=parsec
pkgname=haskell-parsec
pkgver=3.1.4
pkgver=3.1.5
pkgrel=1
pkgdesc="Monadic parser combinators"
url="http://hackage.haskell.org/package/${_hkgname}"
license=('custom:BSD3')
arch=('i686' 'x86_64')
makedepends=()
depends=('ghc' 'haskell-mtl' 'haskell-text')
options=('strip')
arch=('x86_64')
depends=('ghc=7.6.3-1' 'haskell-mtl' 'haskell-text')
options=('strip' 'staticlibs')
install=${pkgname}.install
source=(http://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz)
md5sums=('22fe2b1ebaad74ae3d00d066c3046314')
md5sums=('00e822decff17a034a68c462d2a3e099')
build() {
cd ${srcdir}/${_hkgname}-${pkgver}
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 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
@ -26,11 +39,21 @@ build() {
}
package() {
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}
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
rm -f ${pkgdir}/usr/share/doc/${pkgname}/LICENSE
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"
# Documentation
ln -s "/usr/share/doc/${pkgname}/html" \
"${pkgdir}/usr/share/doc/ghc/html/libraries/parsec"
# License
install -D -m644 LICENSE \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
rm -f "${pkgdir}/usr/share/doc/${pkgname}/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