Date: Saturday, May 19, 2018 @ 17:52:56 Author: felixonmars Revision: 324742
archrelease: copy trunk to community-staging-x86_64 Added: haskell-resourcet/repos/community-staging-x86_64/PKGBUILD (from rev 324741, haskell-resourcet/trunk/PKGBUILD) Deleted: haskell-resourcet/repos/community-staging-x86_64/PKGBUILD ----------+ PKGBUILD | 90 +++++++++++++++++++++++++++++-------------------------------- 1 file changed, 44 insertions(+), 46 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-05-19 17:52:34 UTC (rev 324741) +++ PKGBUILD 2018-05-19 17:52:56 UTC (rev 324742) @@ -1,46 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Arch Haskell Team <arch-hask...@haskell.org> - -_hkgname=resourcet -pkgname=haskell-resourcet -pkgver=1.1.11 -pkgrel=11 -pkgdesc="Deterministic allocation and freeing of scarce resources." -url="https://github.com/snoyberg/conduit" -license=("custom:BSD3") -arch=('x86_64') -depends=('ghc-libs' 'haskell-exceptions' 'haskell-lifted-base' 'haskell-mmorph' - 'haskell-monad-control' 'haskell-transformers-base' - 'haskell-transformers-compat' 'haskell-unliftio-core') -makedepends=('ghc' 'haskell-hspec') -source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('1c7428dae7f6c8cc04c942008d859e54313d32ee972229f817c04a8cef29c38e38c095d42bb953b86b8be0090c8c39cef49854658169da710f1501d8e144d4c7') - -build() { - cd "${srcdir}/${_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 - 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 "${srcdir}/${_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-resourcet/repos/community-staging-x86_64/PKGBUILD (from rev 324741, haskell-resourcet/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-05-19 17:52:56 UTC (rev 324742) @@ -0,0 +1,44 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=resourcet +pkgname=haskell-resourcet +pkgver=1.2.1 +pkgrel=1 +pkgdesc="Deterministic allocation and freeing of scarce resources." +url="https://github.com/snoyberg/conduit" +license=("custom:BSD3") +arch=('x86_64') +depends=('ghc-libs' 'haskell-exceptions' 'haskell-primitive' 'haskell-unliftio-core') +makedepends=('ghc' 'haskell-hspec') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('64c1e2f941d612f67eed281959cf91d8b83169c20512d852ce3a5b17e25ecf145af7293afc5081caace63c4528f398648f220cf8a478ad3b2ee334d30eaa0b87') + +build() { + cd "${srcdir}/${_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 + 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 "${srcdir}/${_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" +}