Date: Monday, May 28, 2018 @ 06:46:47 Author: felixonmars Revision: 332200
archrelease: copy trunk to community-staging-x86_64 Added: haskell-tasty-golden/repos/community-staging-x86_64/ haskell-tasty-golden/repos/community-staging-x86_64/PKGBUILD (from rev 332199, haskell-tasty-golden/trunk/PKGBUILD) ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Copied: haskell-tasty-golden/repos/community-staging-x86_64/PKGBUILD (from rev 332199, haskell-tasty-golden/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-05-28 06:46:47 UTC (rev 332200) @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=tasty-golden +pkgname=haskell-tasty-golden +pkgver=2.3.1.3 +pkgrel=10 +pkgdesc="Golden tests support for tasty" +url="https://github.com/feuerbach/tasty-golden" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' "haskell-tasty" "haskell-optparse-applicative" "haskell-temporary" + "haskell-tagged" "haskell-async") +makedepends=('ghc' 'haskell-tasty-hunit') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('1791165a09bc75ba1b3a0c60f9b4809086aec46611d82b895ca5daac661c6667702ff99bf8a115427bbb6a0d0418672206118018938cfc07c125f90ce5a1defe') + +prepare() { + cd "${srcdir}/${_hkgname}-${pkgver}" + sed -i 's/temporary-rc/temporary/' ${_hkgname}.cabal +} + +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 "${srcdir}/${_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" +}