PKGBUILDs/extra/ghc/PKGBUILD
2009-10-09 21:23:22 -05:00

37 lines
1 KiB
Bash

# $Id: PKGBUILD 47589 2009-07-24 07:11:02Z vesa $
# Maintainer: Vesa Kaihlavirta <vesa@archlinux.org>
pkgname=ghc
pkgver=6.10.4
pkgrel=1
pkgdesc="The Glasgow Haskell Compiler"
arch=(i686 x86_64)
url="http://www.haskell.org/ghc/"
license=("custom")
depends=(gmp)
makedepends=(ghc happy perl)
provides=(haskell-cabal)
replaces=("haskell-cabal<1.6.0.3")
backup=(usr/lib/ghc-6.10.4/package.conf)
install=(ghc.install)
source=("http://www.haskell.org/ghc/dist/stable/dist/$pkgname-$pkgver-src.tar.bz2" \
"http://www.haskell.org/ghc/dist/stable/dist/$pkgname-$pkgver-src-extralibs.tar.bz2"
build.mk ghc.install)
build() {
cd $startdir/src/$pkgname-$pkgver
cp $startdir/build.mk mk/build.mk
./configure --prefix=/usr
make -j2 || return 1
make DESTDIR=$startdir/pkg install
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/ghc/license
}
md5sums=('167687fa582ef6702aaac24e139ec982'
'37ce285617d7cebabc3cf6805bdbca25'
'a05681b982aad44cc6770bd021e35b67'
'd03bca6b591043c0fe996d72dd448919')