Date: Tuesday, July 6, 2021 @ 15:25:36 Author: felixonmars Revision: 973413
archrelease: copy trunk to community-staging-x86_64 Added: haskell-tasty-hedgehog/repos/community-staging-x86_64/PKGBUILD (from rev 973412, haskell-tasty-hedgehog/trunk/PKGBUILD) Deleted: haskell-tasty-hedgehog/repos/community-staging-x86_64/PKGBUILD ----------+ PKGBUILD | 98 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 49 insertions(+), 49 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-07-06 15:25:26 UTC (rev 973412) +++ PKGBUILD 2021-07-06 15:25:36 UTC (rev 973413) @@ -1,49 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -_hkgname=tasty-hedgehog -pkgname=haskell-tasty-hedgehog -pkgver=1.1.0.0 -pkgrel=25 -pkgdesc="Integration for tasty and hedgehog" -url="https://github.com/qfpl/tasty-hedgehog" -license=('BSD') -arch=('x86_64') -depends=('ghc-libs' 'haskell-hedgehog' 'haskell-tagged' 'haskell-tasty') -makedepends=('ghc') -checkdepends=('haskell-tasty-expected-failure') -source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) -sha512sums=('48dda3dda14241f8d8dc77acf61a0fe77887c835ae9de6182c9fe580bb79e98f2480a14c282ff49b1438ffab197812262529e90dcec2af3785713f218490bce2') - -build() { - cd $_hkgname-$pkgver - - if (( CHECKFUNC )); then - _opts=('--enable-tests') - else - _opts=('--disable-tests') - fi - - runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ - --prefix=/usr --docdir=/usr/share/doc/$pkgname "${_opts[@]}" \ - --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 --show-details=direct -} - -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 "LICENCE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE" - rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENCE" -} Copied: haskell-tasty-hedgehog/repos/community-staging-x86_64/PKGBUILD (from rev 973412, haskell-tasty-hedgehog/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-07-06 15:25:36 UTC (rev 973413) @@ -0,0 +1,49 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=tasty-hedgehog +pkgname=haskell-tasty-hedgehog +pkgver=1.1.0.0 +pkgrel=26 +pkgdesc="Integration for tasty and hedgehog" +url="https://github.com/qfpl/tasty-hedgehog" +license=('BSD') +arch=('x86_64') +depends=('ghc-libs' 'haskell-hedgehog' 'haskell-tagged' 'haskell-tasty') +makedepends=('ghc') +checkdepends=('haskell-tasty-expected-failure') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('48dda3dda14241f8d8dc77acf61a0fe77887c835ae9de6182c9fe580bb79e98f2480a14c282ff49b1438ffab197812262529e90dcec2af3785713f218490bce2') + +build() { + cd $_hkgname-$pkgver + + if (( CHECKFUNC )); then + _opts=('--enable-tests') + else + _opts=('--disable-tests') + fi + + runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ + --prefix=/usr --docdir=/usr/share/doc/$pkgname "${_opts[@]}" \ + --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 --show-details=direct +} + +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 "LICENCE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE" + rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENCE" +}