[arch-commits] Commit in haskell-quickcheck-assertions/repos/community-staging-x86_64 (2 files)
Date: Wednesday, February 5, 2020 @ 09:15:38 Author: felixonmars Revision: 562939 archrelease: copy trunk to community-staging-x86_64 Added: haskell-quickcheck-assertions/repos/community-staging-x86_64/PKGBUILD (from rev 562938, haskell-quickcheck-assertions/trunk/PKGBUILD) Deleted: haskell-quickcheck-assertions/repos/community-staging-x86_64/PKGBUILD --+ PKGBUILD | 84 ++--- 1 file changed, 42 insertions(+), 42 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2020-02-05 09:15:22 UTC (rev 562938) +++ PKGBUILD2020-02-05 09:15:38 UTC (rev 562939) @@ -1,42 +0,0 @@ -# Maintainer: Felix Yan -# Contributor: Arch Haskell Team - -_hkgname=quickcheck-assertions -pkgname=haskell-quickcheck-assertions -pkgver=0.3.0 -pkgrel=74 -pkgdesc="HUnit like assertions for QuickCheck" -url="https://github.com/s9gf4ult/quickcheck-assertions"; -license=("LGPL") -arch=('x86_64') -depends=('ghc-libs' 'haskell-quickcheck' 'haskell-ieee754' 'haskell-pretty-show') -makedepends=('ghc' 'haskell-hspec') -source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";) -sha512sums=('7a7a2d503ef270b4b6dcb1665bd1b83e0f7f3477b7fb714ed4685d96bb5e2244f5fd2d833d2f3e9284e7adc0fef5b4547a7182d542c3848a96dce540af207564') - -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" -rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" -} Copied: haskell-quickcheck-assertions/repos/community-staging-x86_64/PKGBUILD (from rev 562938, haskell-quickcheck-assertions/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2020-02-05 09:15:38 UTC (rev 562939) @@ -0,0 +1,42 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=quickcheck-assertions +pkgname=haskell-quickcheck-assertions +pkgver=0.3.0 +pkgrel=75 +pkgdesc="HUnit like assertions for QuickCheck" +url="https://github.com/s9gf4ult/quickcheck-assertions"; +license=("LGPL") +arch=('x86_64') +depends=('ghc-libs' 'haskell-quickcheck' 'haskell-ieee754' 'haskell-pretty-show') +makedepends=('ghc' 'haskell-hspec') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";) +sha512sums=('7a7a2d503ef270b4b6dcb1665bd1b83e0f7f3477b7fb714ed4685d96bb5e2244f5fd2d833d2f3e9284e7adc0fef5b4547a7182d542c3848a96dce540af207564') + +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" +rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +}
[arch-commits] Commit in haskell-quickcheck-assertions/repos/community-staging-x86_64 (2 files)
Date: Tuesday, May 28, 2019 @ 23:02:11 Author: felixonmars Revision: 473256 archrelease: copy trunk to community-staging-x86_64 Added: haskell-quickcheck-assertions/repos/community-staging-x86_64/PKGBUILD (from rev 473255, haskell-quickcheck-assertions/trunk/PKGBUILD) Deleted: haskell-quickcheck-assertions/repos/community-staging-x86_64/PKGBUILD --+ PKGBUILD | 84 ++--- 1 file changed, 42 insertions(+), 42 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-05-28 23:02:00 UTC (rev 473255) +++ PKGBUILD2019-05-28 23:02:11 UTC (rev 473256) @@ -1,42 +0,0 @@ -# Maintainer: Felix Yan -# Contributor: Arch Haskell Team - -_hkgname=quickcheck-assertions -pkgname=haskell-quickcheck-assertions -pkgver=0.3.0 -pkgrel=54 -pkgdesc="HUnit like assertions for QuickCheck" -url="https://github.com/s9gf4ult/quickcheck-assertions"; -license=("LGPL") -arch=('x86_64') -depends=('ghc-libs' 'haskell-quickcheck' 'haskell-ieee754' 'haskell-pretty-show') -makedepends=('ghc' 'haskell-hspec') -source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";) -sha512sums=('7a7a2d503ef270b4b6dcb1665bd1b83e0f7f3477b7fb714ed4685d96bb5e2244f5fd2d833d2f3e9284e7adc0fef5b4547a7182d542c3848a96dce540af207564') - -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" -rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" -} Copied: haskell-quickcheck-assertions/repos/community-staging-x86_64/PKGBUILD (from rev 473255, haskell-quickcheck-assertions/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2019-05-28 23:02:11 UTC (rev 473256) @@ -0,0 +1,42 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=quickcheck-assertions +pkgname=haskell-quickcheck-assertions +pkgver=0.3.0 +pkgrel=55 +pkgdesc="HUnit like assertions for QuickCheck" +url="https://github.com/s9gf4ult/quickcheck-assertions"; +license=("LGPL") +arch=('x86_64') +depends=('ghc-libs' 'haskell-quickcheck' 'haskell-ieee754' 'haskell-pretty-show') +makedepends=('ghc' 'haskell-hspec') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";) +sha512sums=('7a7a2d503ef270b4b6dcb1665bd1b83e0f7f3477b7fb714ed4685d96bb5e2244f5fd2d833d2f3e9284e7adc0fef5b4547a7182d542c3848a96dce540af207564') + +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" +rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +}
[arch-commits] Commit in haskell-quickcheck-assertions/repos/community-staging-x86_64 (2 files)
Date: Monday, May 27, 2019 @ 15:26:59 Author: felixonmars Revision: 471521 archrelease: copy trunk to community-staging-x86_64 Added: haskell-quickcheck-assertions/repos/community-staging-x86_64/PKGBUILD (from rev 471520, haskell-quickcheck-assertions/trunk/PKGBUILD) Deleted: haskell-quickcheck-assertions/repos/community-staging-x86_64/PKGBUILD --+ PKGBUILD | 84 ++--- 1 file changed, 42 insertions(+), 42 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-05-27 15:26:44 UTC (rev 471520) +++ PKGBUILD2019-05-27 15:26:59 UTC (rev 471521) @@ -1,42 +0,0 @@ -# Maintainer: Felix Yan -# Contributor: Arch Haskell Team - -_hkgname=quickcheck-assertions -pkgname=haskell-quickcheck-assertions -pkgver=0.3.0 -pkgrel=52 -pkgdesc="HUnit like assertions for QuickCheck" -url="https://github.com/s9gf4ult/quickcheck-assertions"; -license=("LGPL") -arch=('x86_64') -depends=('ghc-libs' 'haskell-quickcheck' 'haskell-ieee754' 'haskell-pretty-show') -makedepends=('ghc' 'haskell-hspec') -source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";) -sha512sums=('7a7a2d503ef270b4b6dcb1665bd1b83e0f7f3477b7fb714ed4685d96bb5e2244f5fd2d833d2f3e9284e7adc0fef5b4547a7182d542c3848a96dce540af207564') - -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" -rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" -} Copied: haskell-quickcheck-assertions/repos/community-staging-x86_64/PKGBUILD (from rev 471520, haskell-quickcheck-assertions/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2019-05-27 15:26:59 UTC (rev 471521) @@ -0,0 +1,42 @@ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=quickcheck-assertions +pkgname=haskell-quickcheck-assertions +pkgver=0.3.0 +pkgrel=53 +pkgdesc="HUnit like assertions for QuickCheck" +url="https://github.com/s9gf4ult/quickcheck-assertions"; +license=("LGPL") +arch=('x86_64') +depends=('ghc-libs' 'haskell-quickcheck' 'haskell-ieee754' 'haskell-pretty-show') +makedepends=('ghc' 'haskell-hspec') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";) +sha512sums=('7a7a2d503ef270b4b6dcb1665bd1b83e0f7f3477b7fb714ed4685d96bb5e2244f5fd2d833d2f3e9284e7adc0fef5b4547a7182d542c3848a96dce540af207564') + +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" +rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +}
[arch-commits] Commit in haskell-quickcheck-assertions/repos/community-staging-x86_64 (2 files)
Date: Monday, May 21, 2018 @ 16:00:04 Author: felixonmars Revision: 326286 archrelease: copy trunk to community-staging-x86_64 Added: haskell-quickcheck-assertions/repos/community-staging-x86_64/PKGBUILD (from rev 326285, haskell-quickcheck-assertions/trunk/PKGBUILD) Deleted: haskell-quickcheck-assertions/repos/community-staging-x86_64/PKGBUILD --+ PKGBUILD | 86 ++--- 1 file changed, 43 insertions(+), 43 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-05-21 15:59:42 UTC (rev 326285) +++ PKGBUILD2018-05-21 16:00:04 UTC (rev 326286) @@ -1,43 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan -# Contributor: Arch Haskell Team - -_hkgname=quickcheck-assertions -pkgname=haskell-quickcheck-assertions -pkgver=0.3.0 -pkgrel=12 -pkgdesc="HUnit like assertions for QuickCheck" -url="https://github.com/s9gf4ult/quickcheck-assertions"; -license=("LGPL") -arch=('x86_64') -depends=('ghc-libs' 'haskell-quickcheck' 'haskell-ieee754' 'haskell-pretty-show') -makedepends=('ghc' 'haskell-hspec') -source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";) -sha512sums=('7a7a2d503ef270b4b6dcb1665bd1b83e0f7f3477b7fb714ed4685d96bb5e2244f5fd2d833d2f3e9284e7adc0fef5b4547a7182d542c3848a96dce540af207564') - -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 $_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}" -rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" -} Copied: haskell-quickcheck-assertions/repos/community-staging-x86_64/PKGBUILD (from rev 326285, haskell-quickcheck-assertions/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2018-05-21 16:00:04 UTC (rev 326286) @@ -0,0 +1,43 @@ +# $Id$ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=quickcheck-assertions +pkgname=haskell-quickcheck-assertions +pkgver=0.3.0 +pkgrel=13 +pkgdesc="HUnit like assertions for QuickCheck" +url="https://github.com/s9gf4ult/quickcheck-assertions"; +license=("LGPL") +arch=('x86_64') +depends=('ghc-libs' 'haskell-quickcheck' 'haskell-ieee754' 'haskell-pretty-show') +makedepends=('ghc' 'haskell-hspec') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";) +sha512sums=('7a7a2d503ef270b4b6dcb1665bd1b83e0f7f3477b7fb714ed4685d96bb5e2244f5fd2d833d2f3e9284e7adc0fef5b4547a7182d542c3848a96dce540af207564') + +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 $_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}" +rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +}
[arch-commits] Commit in haskell-quickcheck-assertions/repos/community-staging-x86_64 (2 files)
Date: Monday, May 21, 2018 @ 05:34:07 Author: felixonmars Revision: 325757 archrelease: copy trunk to community-staging-x86_64 Added: haskell-quickcheck-assertions/repos/community-staging-x86_64/PKGBUILD (from rev 325756, haskell-quickcheck-assertions/trunk/PKGBUILD) Deleted: haskell-quickcheck-assertions/repos/community-staging-x86_64/PKGBUILD --+ PKGBUILD | 86 ++--- 1 file changed, 43 insertions(+), 43 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-05-21 05:33:45 UTC (rev 325756) +++ PKGBUILD2018-05-21 05:34:07 UTC (rev 325757) @@ -1,43 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan -# Contributor: Arch Haskell Team - -_hkgname=quickcheck-assertions -pkgname=haskell-quickcheck-assertions -pkgver=0.3.0 -pkgrel=11 -pkgdesc="HUnit like assertions for QuickCheck" -url="https://github.com/s9gf4ult/quickcheck-assertions"; -license=("LGPL") -arch=('x86_64') -depends=('ghc-libs' 'haskell-quickcheck' 'haskell-ieee754' 'haskell-pretty-show') -makedepends=('ghc' 'haskell-hspec') -source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";) -sha512sums=('7a7a2d503ef270b4b6dcb1665bd1b83e0f7f3477b7fb714ed4685d96bb5e2244f5fd2d833d2f3e9284e7adc0fef5b4547a7182d542c3848a96dce540af207564') - -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 $_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}" -rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" -} Copied: haskell-quickcheck-assertions/repos/community-staging-x86_64/PKGBUILD (from rev 325756, haskell-quickcheck-assertions/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2018-05-21 05:34:07 UTC (rev 325757) @@ -0,0 +1,43 @@ +# $Id$ +# Maintainer: Felix Yan +# Contributor: Arch Haskell Team + +_hkgname=quickcheck-assertions +pkgname=haskell-quickcheck-assertions +pkgver=0.3.0 +pkgrel=12 +pkgdesc="HUnit like assertions for QuickCheck" +url="https://github.com/s9gf4ult/quickcheck-assertions"; +license=("LGPL") +arch=('x86_64') +depends=('ghc-libs' 'haskell-quickcheck' 'haskell-ieee754' 'haskell-pretty-show') +makedepends=('ghc' 'haskell-hspec') +source=("https://hackage.haskell.org/packages/archive/${_hkgname}/${pkgver}/${_hkgname}-${pkgver}.tar.gz";) +sha512sums=('7a7a2d503ef270b4b6dcb1665bd1b83e0f7f3477b7fb714ed4685d96bb5e2244f5fd2d833d2f3e9284e7adc0fef5b4547a7182d542c3848a96dce540af207564') + +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 $_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}" +rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE" +}