Date: Tuesday, January 19, 2010 @ 02:32:06 Author: vesa Revision: 63981
add quickcheck (formerly part of ghc) Added: haskell-quickcheck/ haskell-quickcheck/repos/ haskell-quickcheck/trunk/ haskell-quickcheck/trunk/PKGBUILD haskell-quickcheck/trunk/haskell-quickcheck.install ----------------------------+ PKGBUILD | 26 ++++++++++++++++++++++++++ haskell-quickcheck.install | 13 +++++++++++++ 2 files changed, 39 insertions(+) Added: haskell-quickcheck/trunk/PKGBUILD =================================================================== --- haskell-quickcheck/trunk/PKGBUILD (rev 0) +++ haskell-quickcheck/trunk/PKGBUILD 2010-01-19 07:32:06 UTC (rev 63981) @@ -0,0 +1,26 @@ +# Maintainer: Vesa Kaihlavirta <v...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> +pkgname=haskell-quickcheck +pkgver=2.1.0.3 +pkgrel=1 +pkgdesc="Automatic testing of Haskell programs" +url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/QuickCheck" +license=('custom:BSD3') +arch=('i686' 'x86_64') +depends=(ghc=6.12.1 sh) +options=('strip') +source=(http://hackage.haskell.org/packages/archive/QuickCheck/$pkgver/QuickCheck-$pkgver.tar.gz) +install=$pkgname.install + +build() { + cd $srcdir/QuickCheck-$pkgver + runhaskell Setup configure -p --enable-split-objs --enable-shared --prefix=/usr || return 1 + runhaskell Setup build || return 1 + runhaskell Setup register --gen-script || return 1 + runhaskell Setup unregister --gen-script || return 1 + install -D -m744 register.sh $pkgdir/usr/share/haskell/$pkgname/register.sh + install -m744 unregister.sh $pkgdir/usr/share/haskell/$pkgname/unregister.sh + runhaskell Setup copy --destdir=$pkgdir || return 1 + install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE || return 1 +} +md5sums=('c983f18ac12c942271e4a3beb6a5a50c') Added: haskell-quickcheck/trunk/haskell-quickcheck.install =================================================================== --- haskell-quickcheck/trunk/haskell-quickcheck.install (rev 0) +++ haskell-quickcheck/trunk/haskell-quickcheck.install 2010-01-19 07:32:06 UTC (rev 63981) @@ -0,0 +1,13 @@ +HS_DIR=/usr/share/haskell/haskell-quickcheck +post_install() { + ${HS_DIR}/register.sh +} +pre_upgrade() { + ${HS_DIR}/unregister.sh +} +post_upgrade() { + ${HS_DIR}/register.sh +} +pre_remove() { + ${HS_DIR}/unregister.sh +}