Date: Sunday, March 18, 2018 @ 18:53:40 Author: felixonmars Revision: 309075
archrelease: copy trunk to community-staging-x86_64 Added: haskell-shelly/repos/community-staging-x86_64/ haskell-shelly/repos/community-staging-x86_64/PKGBUILD (from rev 309073, haskell-shelly/trunk/PKGBUILD) ----------+ PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) Copied: haskell-shelly/repos/community-staging-x86_64/PKGBUILD (from rev 309073, haskell-shelly/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-03-18 18:53:40 UTC (rev 309075) @@ -0,0 +1,48 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=shelly +pkgname=haskell-shelly +pkgver=1.7.2 +pkgrel=1 +pkgdesc="Shell-like (systems) programming in Haskell" +url="https://github.com/yesodweb/Shelly.hs" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' 'haskell-mtl' 'haskell-unix-compat' 'haskell-system-filepath' + 'haskell-system-fileio' 'haskell-monad-control' 'haskell-lifted-base' + 'haskell-lifted-async' 'haskell-exceptions' 'haskell-enclosed-exceptions' 'haskell-text' + 'haskell-async' 'haskell-transformers-base') +makedepends=('ghc' 'haskell-hunit' 'haskell-hspec' 'haskell-hspec-contrib') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('bee82f8b6433f244d84984fdfaa262ac3c6712d54f37882e503a9de6ace6f7a3da497ba81bedc7e33d0db6f37a464605e4c245fd90a829666df692ad912b7fb3') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" --enable-tests \ + --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \ + -f-lifted -f-build-examples + runhaskell Setup build + runhaskell Setup register --gen-script + runhaskell Setup unregister --gen-script + sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh + sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh +} + +check() { + cd $_hkgname-$pkgver + runhaskell Setup test +} + +package() { + cd $_hkgname-$pkgver + + install -D -m744 register.sh "${pkgdir}/usr/share/haskell/register/${pkgname}.sh" + install -D -m744 unregister.sh "${pkgdir}/usr/share/haskell/unregister/${pkgname}.sh" + runhaskell Setup copy --destdir="${pkgdir}" + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +}