Date: Tuesday, January 19, 2010 @ 02:39:16 Author: vesa Revision: 63984
add parallel (previously part of ghc) Added: haskell-parallel/ haskell-parallel/repos/ haskell-parallel/trunk/ haskell-parallel/trunk/PKGBUILD haskell-parallel/trunk/haskell-parallel.install --------------------------+ PKGBUILD | 25 +++++++++++++++++++++++++ haskell-parallel.install | 14 ++++++++++++++ 2 files changed, 39 insertions(+) Added: haskell-parallel/trunk/PKGBUILD =================================================================== --- haskell-parallel/trunk/PKGBUILD (rev 0) +++ haskell-parallel/trunk/PKGBUILD 2010-01-19 07:39:16 UTC (rev 63984) @@ -0,0 +1,25 @@ +# Maintainer: Vesa Kaihlavirta <v...@archlinux.org> +# Contributor: Arch Haskell Team <arch-hask...@haskell.org> +pkgname=haskell-parallel +pkgver=2.2.0.1 +pkgrel=1 +pkgdesc="Parallel programming library" +url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/parallel" +license=('custom:BSD3') +arch=('i686' 'x86_64') +depends=(ghc=6.12.1 'haskell-containers=0.3.0.0' sh) +options=('strip') +source=(http://hackage.haskell.org/packages/archive/parallel/$pkgver/parallel-$pkgver.tar.gz) +install=$pkgname.install + +build() { + cd $srcdir/parallel-$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 +} Added: haskell-parallel/trunk/haskell-parallel.install =================================================================== --- haskell-parallel/trunk/haskell-parallel.install (rev 0) +++ haskell-parallel/trunk/haskell-parallel.install 2010-01-19 07:39:16 UTC (rev 63984) @@ -0,0 +1,14 @@ +HS_DIR=/usr/share/haskell/haskell-parallel +post_install() { + ${HS_DIR}/register.sh +} +pre_upgrade() { + ${HS_DIR}/unregister.sh &> /dev/null + exit 0 +} +post_upgrade() { + ${HS_DIR}/register.sh +} +pre_remove() { + ${HS_DIR}/unregister.sh +}