Date: Thursday, December 21, 2017 @ 09:28:37 Author: felixonmars Revision: 275137
archrelease: copy trunk to community-x86_64 Added: haskell-tasty-golden/repos/community-x86_64/PKGBUILD (from rev 275136, haskell-tasty-golden/trunk/PKGBUILD) Deleted: haskell-tasty-golden/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 100 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 50 insertions(+), 50 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-12-21 09:28:21 UTC (rev 275136) +++ PKGBUILD 2017-12-21 09:28:37 UTC (rev 275137) @@ -1,50 +0,0 @@ -# $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.1 -pkgrel=4 -pkgdesc="Golden tests support for tasty" -url="https://github.com/feuerbach/tasty-golden" -license=("MIT") -arch=('x86_64') -depends=('ghc-libs' "haskell-tasty" "haskell-mtl" "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=('b7871d2ddcf7f45e0f1df52982b6370308dd0c48588318985977cb88f93f4b759b1f2bdff44e31ec86f230f04304bcee14286f62c2d2ae01a6105b8a3250e5fb') - -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" -} Copied: haskell-tasty-golden/repos/community-x86_64/PKGBUILD (from rev 275136, haskell-tasty-golden/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-12-21 09:28:37 UTC (rev 275137) @@ -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.2 +pkgrel=1 +pkgdesc="Golden tests support for tasty" +url="https://github.com/feuerbach/tasty-golden" +license=("MIT") +arch=('x86_64') +depends=('ghc-libs' "haskell-tasty" "haskell-mtl" "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=('dbde1c8828e71c7e7858df9760a81219a2d0b0360cc8df0341d17851ce5a938ef36aaad5694f49e39158413cd608b23ddb6d071643033a993d026c502831766a') + +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" +}