# Maintainer: Vesa Kaihlavirta # Contributor: Arch Haskell Team # Package originally generated by cabal2arch 0.4.2 pkgname=haskell-http pkgrel=1 pkgver=4000.0.7 pkgdesc="A library for client-side HTTP" url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP" license=('custom:BSD3') arch=('i686' 'x86_64') depends=('ghc=6.10.4' sh) options=('strip') source=(http://hackage.haskell.org/packages/archive/HTTP/$pkgver/HTTP-$pkgver.tar.gz) install=haskell-http.install build() { cd $startdir/src/HTTP-$pkgver runhaskell Setup configure --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 $startdir/pkg/usr/share/haskell/$pkgname/register.sh install -m744 unregister.sh $startdir/pkg/usr/share/haskell/$pkgname/unregister.sh runhaskell Setup copy --destdir=$startdir/pkg || return 1 install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE || return 1 } md5sums=('e1cfe387a0c99e25185e35c4528faa8b')