Date: Monday, March 29, 2021 @ 05:11:45 Author: felixonmars Revision: 908450
archrelease: copy trunk to community-staging-x86_64 Added: haskell-tasty-silver/repos/community-staging-x86_64/ haskell-tasty-silver/repos/community-staging-x86_64/PKGBUILD (from rev 908449, haskell-tasty-silver/trunk/PKGBUILD) ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Copied: haskell-tasty-silver/repos/community-staging-x86_64/PKGBUILD (from rev 908449, haskell-tasty-silver/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-03-29 05:11:45 UTC (rev 908450) @@ -0,0 +1,44 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=tasty-silver +pkgname=haskell-tasty-silver +pkgver=3.2.1 +pkgrel=8 +pkgdesc="A fancy test runner, including support for golden tests" +url="https://github.com/phile314/tasty-silver" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' 'haskell-ansi-terminal' 'haskell-async' 'haskell-optparse-applicative' + 'haskell-process-extras' 'haskell-regex-tdfa' 'haskell-tagged' 'haskell-tasty' + 'haskell-temporary') +makedepends=('ghc' 'haskell-tasty-hunit') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz") +sha512sums=('235edbc01ecd662df66e8816f9510d37eea5e631e2ae77d54611f85ba57ae4fe9c588264c74061a77f29f82c4e99d27e702569f0a57949622f794a61f50abfb4') + +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 $MAKEFLAGS + 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 +}