Date: Thursday, May 17, 2018 @ 09:33:27 Author: felixonmars Revision: 323575
archrelease: copy trunk to community-staging-x86_64 Added: haskell-hspec-contrib/repos/community-staging-x86_64/PKGBUILD (from rev 323574, haskell-hspec-contrib/trunk/PKGBUILD) Deleted: haskell-hspec-contrib/repos/community-staging-x86_64/PKGBUILD ----------+ PKGBUILD | 86 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 43 insertions(+), 43 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-05-17 09:33:04 UTC (rev 323574) +++ PKGBUILD 2018-05-17 09:33:27 UTC (rev 323575) @@ -1,43 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -_hkgname=hspec-contrib -pkgname=haskell-hspec-contrib -pkgver=0.5.0 -pkgrel=2 -pkgdesc="Contributed functionality for Hspec" -url="http://hspec.github.io/" -license=('MIT') -arch=('x86_64') -depends=('ghc-libs' 'haskell-hspec-core' 'haskell-hunit') -makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') -source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) -sha512sums=('30cc69eaf6a4e6a2f8af6ab10c2ab185e2ffec5de03a4724a118377ea1abdcddf75db3ba7733325f2486763c1dea6bc87501aee2798defe2646af332994a6486') - -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 - 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" -} Copied: haskell-hspec-contrib/repos/community-staging-x86_64/PKGBUILD (from rev 323574, haskell-hspec-contrib/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-05-17 09:33:27 UTC (rev 323575) @@ -0,0 +1,43 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=hspec-contrib +pkgname=haskell-hspec-contrib +pkgver=0.5.0 +pkgrel=3 +pkgdesc="Contributed functionality for Hspec" +url="http://hspec.github.io/" +license=('MIT') +arch=('x86_64') +depends=('ghc-libs' 'haskell-hspec-core' 'haskell-hunit') +makedepends=('ghc' 'haskell-hspec' 'haskell-quickcheck') +source=(https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz) +sha512sums=('30cc69eaf6a4e6a2f8af6ab10c2ab185e2ffec5de03a4724a118377ea1abdcddf75db3ba7733325f2486763c1dea6bc87501aee2798defe2646af332994a6486') + +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 + 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" +}