Date: Sunday, March 4, 2018 @ 14:30:27 Author: felixonmars Revision: 302410
archrelease: copy trunk to community-staging-x86_64 Added: haskell-tasty-expected-failure/repos/community-staging-x86_64/ haskell-tasty-expected-failure/repos/community-staging-x86_64/PKGBUILD (from rev 302409, haskell-tasty-expected-failure/trunk/PKGBUILD) ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Copied: haskell-tasty-expected-failure/repos/community-staging-x86_64/PKGBUILD (from rev 302409, haskell-tasty-expected-failure/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-03-04 14:30:27 UTC (rev 302410) @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> + +_hkgname=tasty-expected-failure +pkgname=haskell-tasty-expected-failure +pkgver=0.11.1 +pkgrel=1 +pkgdesc="Mark tasty tests as failure expected" +url="https://github.com/nomeata/tasty-expected-failure" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' 'haskell-tagged' 'haskell-tasty') +makedepends=('ghc') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('377fb54741089bf3c1c8d9c7f8e443360e0c13486f58f9c287a99fe092539c5b93c55eab8e2b1b9749ee163c7b7ef1319706f8590aca0306231052c8b2ceabf5') + +build() { + cd $_hkgname-$pkgver + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir="/usr/share/doc/${pkgname}" \ + --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 +} + +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" +}