Date: Thursday, October 4, 2018 @ 09:43:47 Author: felixonmars Revision: 389371
archrelease: copy trunk to community-staging-x86_64 Added: haskell-mono-traversable/repos/community-staging-x86_64/ haskell-mono-traversable/repos/community-staging-x86_64/PKGBUILD (from rev 389370, haskell-mono-traversable/trunk/PKGBUILD) ----------+ PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) Copied: haskell-mono-traversable/repos/community-staging-x86_64/PKGBUILD (from rev 389370, haskell-mono-traversable/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-10-04 09:43:47 UTC (rev 389371) @@ -0,0 +1,49 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=mono-traversable +pkgname=haskell-mono-traversable +pkgver=1.0.9.0 +pkgrel=14 +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=('c9bf2f96358d4456221f8ec59719602424a1a3b601a5fcc9dd9189bf851a722c860b2692106b59b92ccd25cb1ef73ce2bfca2cd46c3bf1335675f3a265fe9ffd') + +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" +}