PKGBUILDs/community/cabal-install/PKGBUILD
2009-10-09 21:15:33 -05:00

24 lines
970 B
Bash

# Maintainer: Vesa Kaihlavirta <vesa@archlinux.org>
# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
# Package originally generated by cabal2arch 0.4.1
pkgname=cabal-install
pkgrel=1.3
pkgver=0.6.2
pkgdesc="The command-line interface for Cabal and Hackage."
url="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/cabal-install"
license=('custom:BSD3')
arch=('i686' 'x86_64')
makedepends=('ghc=6.10.4' 'haskell-http>=4000' 'haskell-zlib')
depends=('gmp' zlib)
options=('strip')
source=(http://hackage.haskell.org/packages/archive/cabal-install/$pkgver/cabal-install-$pkgver.tar.gz)
md5sums=('8cb1c19233a9a114faf0eea7c46cb23e')
build() {
cd $startdir/src/cabal-install-$pkgver
runhaskell Setup configure --prefix=/usr || return 1
runhaskell Setup build || return 1
runhaskell Setup copy --destdir=$startdir/pkg || return 1
install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE || return 1
}