Date: Wednesday, January 13, 2016 @ 05:46:52 Author: fyan Revision: 156265
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: stack/repos/community-staging-i686/ stack/repos/community-staging-i686/PKGBUILD (from rev 156264, stack/trunk/PKGBUILD) stack/repos/community-staging-i686/haskell-stack.install (from rev 156264, stack/trunk/haskell-stack.install) stack/repos/community-staging-x86_64/ stack/repos/community-staging-x86_64/PKGBUILD (from rev 156264, stack/trunk/PKGBUILD) stack/repos/community-staging-x86_64/haskell-stack.install (from rev 156264, stack/trunk/haskell-stack.install) ------------------------------------------------+ community-staging-i686/PKGBUILD | 85 +++++++++++++++++++++++ community-staging-i686/haskell-stack.install | 18 ++++ community-staging-x86_64/PKGBUILD | 85 +++++++++++++++++++++++ community-staging-x86_64/haskell-stack.install | 18 ++++ 4 files changed, 206 insertions(+) Copied: stack/repos/community-staging-i686/PKGBUILD (from rev 156264, stack/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2016-01-13 04:46:52 UTC (rev 156265) @@ -0,0 +1,85 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgbase=stack +pkgname=(stack haskell-stack) +pkgver=1.0.0 +pkgrel=1 +pkgdesc="The Haskell Tool Stack" +url="https://github.com/commercialhaskell/stack" +license=("custom:BSD3") +arch=('i686' 'x86_64') +makedepends=("ghc=7.10.3" "haskell-aeson" "haskell-ansi-terminal" "haskell-async" + "haskell-attoparsec" "haskell-base16-bytestring" "haskell-base64-bytestring" + "haskell-bifunctors" "haskell-binary-tagged" "haskell-blaze-builder" + "haskell-byteable" "haskell-conduit" "haskell-conduit-combinators" + "haskell-conduit-extra" "haskell-cryptohash" "haskell-cryptohash-conduit" + "haskell-edit-distance" "haskell-either" "haskell-email-validate" + "haskell-enclosed-exceptions" "haskell-errors" "haskell-exceptions" + "haskell-extra" "haskell-fast-logger" "haskell-file-embed" "haskell-filelock" + "haskell-fsnotify" "haskell-gitrev" "haskell-hashable" "haskell-hastache" + "haskell-http-client" "haskell-http-client-tls" "haskell-http-conduit" + "haskell-http-types" "haskell-lifted-base" "haskell-monad-control" + "haskell-monad-logger" "haskell-monad-loops" "haskell-mtl" "haskell-old-locale" + "haskell-optparse-applicative" "haskell-optparse-simple" "haskell-path" + "haskell-persistent" "haskell-persistent-sqlite" "haskell-persistent-template" + "haskell-project-template" "haskell-resourcet" "haskell-retry" "haskell-safe" + "haskell-semigroups" "haskell-split" "haskell-stm" "haskell-streaming-commons" + "haskell-tar" "haskell-temporary" "haskell-text" "haskell-text-binary" + "haskell-transformers-base" "haskell-unix-compat" "haskell-unordered-containers" + "haskell-uuid" "haskell-vector" "haskell-vector-binary-instances" "haskell-void" + "haskell-word8" "haskell-yaml" "haskell-zlib") +options=('staticlibs') +source=("http://hackage.haskell.org/packages/archive/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.gz") +sha256sums=('cd2f606d390fe521b6ba0794de87edcba64c4af66856af09594907c2b4f4751d') + +prepare() { + sed -e 's/async >=2.0.2 && <2.1,/async >=2.0.2 \&\& <2.2,/' \ + -e 's/errors >=2.0.1 && <2.1,/errors >=2.0.1 \&\& <2.2,/' \ + -e 's/gitrev ==1.1.*,/gitrev >= 1.1 \&\& < 1.3,/' \ + -e 's/tar >=0.4.1.0 && <0.5,/tar >=0.4.1.0 \&\& <0.6,/' \ + -i ${pkgbase}-${pkgver}/${pkgbase}.cabal +} + +build() { + cd "${srcdir}/${pkgbase}-${pkgver}" + + runhaskell Setup configure -O --enable-library-profiling --enable-shared \ + --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" \ + --libsubdir=\$compiler/site-local/\$pkgid \ + -f-disable-git-info -f-integration-tests + runhaskell Setup build + runhaskell Setup haddock --hoogle --html + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +package_stack() { + depends=('gmp' 'libffi' 'zlib') + + cd "${srcdir}/${pkgbase}-${pkgver}" + runhaskell Setup copy --destdir="${pkgdir}" + rm -r "$pkgdir"/usr/{lib,share/doc} + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + "${pkgdir}"/usr/bin/stack --bash-completion-script /usr/bin/stack > stack_completion_script + install -Dm644 stack_completion_script "${pkgdir}/usr/share/bash-completion/completions/stack" +} + +package_haskell-stack() { + pkgdesc="The Haskell Tool Stack (docs and libraries)" + depends=("${makedepends[@]}" 'stack') + install="haskell-stack.install" + + cd "${srcdir}/${pkgbase}-${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/${pkgbase}" + runhaskell Setup copy --destdir="${pkgdir}" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" + rm -rf "${pkgdir}/usr/bin" +} Copied: stack/repos/community-staging-i686/haskell-stack.install (from rev 156264, stack/trunk/haskell-stack.install) =================================================================== --- community-staging-i686/haskell-stack.install (rev 0) +++ community-staging-i686/haskell-stack.install 2016-01-13 04:46:52 UTC (rev 156265) @@ -0,0 +1,18 @@ +HS_DIR=usr/share/haskell/haskell-stack +post_install() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_upgrade() { + ${HS_DIR}/unregister.sh +} +post_upgrade() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_remove() { + ${HS_DIR}/unregister.sh +} +post_remove() { + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} Copied: stack/repos/community-staging-x86_64/PKGBUILD (from rev 156264, stack/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2016-01-13 04:46:52 UTC (rev 156265) @@ -0,0 +1,85 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +pkgbase=stack +pkgname=(stack haskell-stack) +pkgver=1.0.0 +pkgrel=1 +pkgdesc="The Haskell Tool Stack" +url="https://github.com/commercialhaskell/stack" +license=("custom:BSD3") +arch=('i686' 'x86_64') +makedepends=("ghc=7.10.3" "haskell-aeson" "haskell-ansi-terminal" "haskell-async" + "haskell-attoparsec" "haskell-base16-bytestring" "haskell-base64-bytestring" + "haskell-bifunctors" "haskell-binary-tagged" "haskell-blaze-builder" + "haskell-byteable" "haskell-conduit" "haskell-conduit-combinators" + "haskell-conduit-extra" "haskell-cryptohash" "haskell-cryptohash-conduit" + "haskell-edit-distance" "haskell-either" "haskell-email-validate" + "haskell-enclosed-exceptions" "haskell-errors" "haskell-exceptions" + "haskell-extra" "haskell-fast-logger" "haskell-file-embed" "haskell-filelock" + "haskell-fsnotify" "haskell-gitrev" "haskell-hashable" "haskell-hastache" + "haskell-http-client" "haskell-http-client-tls" "haskell-http-conduit" + "haskell-http-types" "haskell-lifted-base" "haskell-monad-control" + "haskell-monad-logger" "haskell-monad-loops" "haskell-mtl" "haskell-old-locale" + "haskell-optparse-applicative" "haskell-optparse-simple" "haskell-path" + "haskell-persistent" "haskell-persistent-sqlite" "haskell-persistent-template" + "haskell-project-template" "haskell-resourcet" "haskell-retry" "haskell-safe" + "haskell-semigroups" "haskell-split" "haskell-stm" "haskell-streaming-commons" + "haskell-tar" "haskell-temporary" "haskell-text" "haskell-text-binary" + "haskell-transformers-base" "haskell-unix-compat" "haskell-unordered-containers" + "haskell-uuid" "haskell-vector" "haskell-vector-binary-instances" "haskell-void" + "haskell-word8" "haskell-yaml" "haskell-zlib") +options=('staticlibs') +source=("http://hackage.haskell.org/packages/archive/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.gz") +sha256sums=('cd2f606d390fe521b6ba0794de87edcba64c4af66856af09594907c2b4f4751d') + +prepare() { + sed -e 's/async >=2.0.2 && <2.1,/async >=2.0.2 \&\& <2.2,/' \ + -e 's/errors >=2.0.1 && <2.1,/errors >=2.0.1 \&\& <2.2,/' \ + -e 's/gitrev ==1.1.*,/gitrev >= 1.1 \&\& < 1.3,/' \ + -e 's/tar >=0.4.1.0 && <0.5,/tar >=0.4.1.0 \&\& <0.6,/' \ + -i ${pkgbase}-${pkgver}/${pkgbase}.cabal +} + +build() { + cd "${srcdir}/${pkgbase}-${pkgver}" + + runhaskell Setup configure -O --enable-library-profiling --enable-shared \ + --prefix=/usr --docdir="/usr/share/doc/${pkgbase}" \ + --libsubdir=\$compiler/site-local/\$pkgid \ + -f-disable-git-info -f-integration-tests + runhaskell Setup build + runhaskell Setup haddock --hoogle --html + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +package_stack() { + depends=('gmp' 'libffi' 'zlib') + + cd "${srcdir}/${pkgbase}-${pkgver}" + runhaskell Setup copy --destdir="${pkgdir}" + rm -r "$pkgdir"/usr/{lib,share/doc} + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + "${pkgdir}"/usr/bin/stack --bash-completion-script /usr/bin/stack > stack_completion_script + install -Dm644 stack_completion_script "${pkgdir}/usr/share/bash-completion/completions/stack" +} + +package_haskell-stack() { + pkgdesc="The Haskell Tool Stack (docs and libraries)" + depends=("${makedepends[@]}" 'stack') + install="haskell-stack.install" + + cd "${srcdir}/${pkgbase}-${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/${pkgbase}" + runhaskell Setup copy --destdir="${pkgdir}" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" + rm -rf "${pkgdir}/usr/bin" +} Copied: stack/repos/community-staging-x86_64/haskell-stack.install (from rev 156264, stack/trunk/haskell-stack.install) =================================================================== --- community-staging-x86_64/haskell-stack.install (rev 0) +++ community-staging-x86_64/haskell-stack.install 2016-01-13 04:46:52 UTC (rev 156265) @@ -0,0 +1,18 @@ +HS_DIR=usr/share/haskell/haskell-stack +post_install() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_upgrade() { + ${HS_DIR}/unregister.sh +} +post_upgrade() { + ${HS_DIR}/register.sh + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +} +pre_remove() { + ${HS_DIR}/unregister.sh +} +post_remove() { + (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index) +}