Date: Saturday, May 19, 2018 @ 21:27:49 Author: felixonmars Revision: 324935
archrelease: copy trunk to community-staging-x86_64 Added: haskell-mono-traversable/repos/community-staging-x86_64/PKGBUILD (from rev 324934, haskell-mono-traversable/trunk/PKGBUILD) Deleted: haskell-mono-traversable/repos/community-staging-x86_64/PKGBUILD ----------+ PKGBUILD | 96 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 50 insertions(+), 46 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-05-19 21:27:27 UTC (rev 324934) +++ PKGBUILD 2018-05-19 21:27:49 UTC (rev 324935) @@ -1,46 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Arch Haskell Team <arch-hask...@haskell.org> - -_hkgname=mono-traversable -pkgname=haskell-mono-traversable -pkgver=1.0.8.1 -pkgrel=18 -pkgdesc="Type classes for mapping, folding, and traversing monomorphic containers" -url="https://github.com/snoyberg/mono-traversable" -license=("MIT") -arch=('x86_64') -depends=('ghc-libs' 'haskell-hashable' 'haskell-split' 'haskell-unordered-containers' - 'haskell-vector' 'haskell-vector-algorithms') -makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-foldl' 'haskell-hspec' - 'haskell-semigroups') -source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") -sha512sums=('cb3ea7efd1995be5f3af2b71cb8ed105801de6e2496fdd2644f90b223a33aa9b1e2e70837acaf3289aa4354ec217daf9bb77b44e7b745c3c84866ec40be5e062') - -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 - 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-mono-traversable/repos/community-staging-x86_64/PKGBUILD (from rev 324934, haskell-mono-traversable/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-05-19 21:27:49 UTC (rev 324935) @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=mono-traversable +pkgname=haskell-mono-traversable +pkgver=1.0.8.1 +pkgrel=19 +pkgdesc="Type classes for mapping, folding, and traversing monomorphic containers" +url="https://github.com/snoyberg/mono-traversable" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' 'haskell-hashable' 'haskell-split' 'haskell-unordered-containers' + 'haskell-vector' 'haskell-vector-algorithms') +makedepends=('ghc' 'haskell-hunit' 'haskell-quickcheck' 'haskell-foldl' 'haskell-hspec') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('cb3ea7efd1995be5f3af2b71cb8ed105801de6e2496fdd2644f90b223a33aa9b1e2e70837acaf3289aa4354ec217daf9bb77b44e7b745c3c84866ec40be5e062') + +prepare() { + cd $_hkgname-$pkgver + sed -i '/semigroups/d' $_hkgname.cabal +} + +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 + 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" +}