Date: Monday, May 21, 2018 @ 17:57:48 Author: felixonmars Revision: 326460
archrelease: copy trunk to community-staging-x86_64 Added: haskell-shelly/repos/community-staging-x86_64/PKGBUILD (from rev 326459, haskell-shelly/trunk/PKGBUILD) Deleted: haskell-shelly/repos/community-staging-x86_64/PKGBUILD ----------+ PKGBUILD | 96 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-05-21 17:57:23 UTC (rev 326459) +++ PKGBUILD 2018-05-21 17:57:48 UTC (rev 326460) @@ -1,48 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Arch Haskell Team <arch-hask...@haskell.org> - -_hkgname=shelly -pkgname=haskell-shelly -pkgver=1.8.0 -pkgrel=5 -pkgdesc="Shell-like (systems) programming in Haskell" -url="https://github.com/yesodweb/Shelly.hs" -license=("custom:BSD3") -arch=('x86_64') -depends=('ghc-libs' 'haskell-unix-compat' 'haskell-system-filepath' - 'haskell-system-fileio' 'haskell-monad-control' 'haskell-lifted-base' - 'haskell-lifted-async' 'haskell-exceptions' 'haskell-enclosed-exceptions' - '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=('c54231f6ac09eb5545d8abac82fb7201422297e113761acb9b171007bd7a6cd9146eed8d5fab9d4ba524b21cee361314b8cdba137ba18a82e3f9071da915ad22') - -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" -} Copied: haskell-shelly/repos/community-staging-x86_64/PKGBUILD (from rev 326459, haskell-shelly/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-05-21 17:57:48 UTC (rev 326460) @@ -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.8.0 +pkgrel=6 +pkgdesc="Shell-like (systems) programming in Haskell" +url="https://github.com/yesodweb/Shelly.hs" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' 'haskell-unix-compat' 'haskell-system-filepath' + 'haskell-system-fileio' 'haskell-monad-control' 'haskell-lifted-base' + 'haskell-lifted-async' 'haskell-exceptions' 'haskell-enclosed-exceptions' + '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=('c54231f6ac09eb5545d8abac82fb7201422297e113761acb9b171007bd7a6cd9146eed8d5fab9d4ba524b21cee361314b8cdba137ba18a82e3f9071da915ad22') + +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" +}