Date: Tuesday, May 7, 2019 @ 17:16:44 Author: felixonmars Revision: 462410
archrelease: copy trunk to community-staging-x86_64 Added: haskell-yaml/repos/community-staging-x86_64/ haskell-yaml/repos/community-staging-x86_64/PKGBUILD (from rev 462409, haskell-yaml/trunk/PKGBUILD) ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Copied: haskell-yaml/repos/community-staging-x86_64/PKGBUILD (from rev 462409, haskell-yaml/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-05-07 17:16:44 UTC (rev 462410) @@ -0,0 +1,45 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=yaml +pkgname=haskell-yaml +pkgver=0.11.0.0 +pkgrel=39 +pkgdesc="Support for parsing and rendering YAML documents." +url="https://github.com/snoyberg/yaml/" +license=("BSD") +arch=('x86_64') +depends=('ghc-libs' 'haskell-aeson' 'haskell-attoparsec' 'haskell-conduit' 'haskell-libyaml' + 'haskell-vector' 'haskell-resourcet' 'haskell-scientific' 'haskell-unordered-containers') +makedepends=('ghc' 'haskell-hspec' 'haskell-hunit' 'haskell-mockery' 'haskell-base-compat' + 'haskell-raw-strings-qq' 'haskell-temporary') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('9797413d1e198a41f048c6364ea38ecc5f550f68442fb956eaa0448498b32184fc8155465c7ac41a4d7ed434ceab8955e17549723ba92f78146525467afc09a1') + +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 + LC_CTYPE=en_US.UTF-8 runhaskell Setup test || warning "Tests failed" +} + +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" +}