#Packager: Tim Beech #See the GHC website for build info. In brief, you need GHC #to build GHC. That means first installing a binary distribution. #The necessary files and a SLKBUILD.bindist are provided. #Note that this build fails three tests in the fast testsuite, but to #judge from the Arch PKGBUILD for ghc-7.6.1, this isn't bad going. #The binary distribution fails 13. pkgname=ghc pkgver=7.4.2 pkgrel=3tjb #arch=noarch source=("http://www.haskell.org/ghc/dist/7.4.2/ghc-7.4.2-src.tar.bz2") sourcetemplate=http://people.salixos.org/mimosa/packages/$pkgname/$pkgver/ docs=("announce" "readme" "install" "copying" "changelog" "authors" "news" "todo" "license" "hacking" "version") url=www.haskell.org #dotnew=() #CFLAGS= #CXXFLAGS= #options=('noextract') doinst() { ghc-pkg recache } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "ghc (the Gasgow Haskell Compiler)" "GHC is an open source compiler and interactive environment for" "the pure functional language Haskell. Profiling libraries and" "documentation are included. If you have installed this GHC as an" "upgrade, you may need to unregister and reinstall cabalised packages." "" "Homepage: http://haskell.org/ghc/" ) build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --mandir=/usr/man --docdir=/usr/doc/$pkgname-$pkgver make make install DESTDIR=$startdir/pkg #docs housekeeping chmod -R go-w $startdir/pkg/usr/doc }