#Packager: Tim Beech #build dep:haskell-hscolour (to make doc) #this package draws heavily on the Arch pkgbuilds for this version #and an earlier one by Jonathan Lahav pkgname=haskell-platform pkgver=2013.2.0.0 pkgrel=1tjb #arch=noarch source=("install.sh.patch" "http://lambda.haskell.org/platform/download/$pkgver/haskell-platform-$pkgver.tar.gz") sourcetemplate=http://people.salixos.org/mimosa/packages/$pkgname/$pkgver/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://www.haskell.org/platform/linux.html #dotnew=() #CFLAGS= #CXXFLAGS= #options=('noextract') doinst() { ghc-pkg recache } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "haskell-platform - Haskell with batteries included" "" "The Haskell Platform is a comprehensive, robust development" "environment for programming in Haskell. For new users the platform" "makes it trivial to get up and running with a full Haskell development" "environment. For experienced developers, the platform provides a" "comprehensive, standard base for commercial and open source Haskell" "development to maximise interoperability and stability of your code." ) build() { ghcver=7.6.3 cd $startdir/src/$pkgname-$pkgver #Patch install.sh to respect $DESTDIR in make install # no need as we're not using install.sh #patch -p1 -i $startdir/install.sh.patch || die "Patching install.sh failed!" # Fix GHC_PACKAGE_PATH error. sed -i '/GHC_PACKAGE_PATH="${ORIG_GHC_PACKAGE_PATH}"/s/^/#/' scripts/build.sh if [ $ghcver == "7.6.3" ]; then ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc \ # --enable-shared #Vector fails with this else ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc \ # --enable-shared \ --enable-unsupported-ghc-version fi make -j $numjobs || return 1 # make install DESTDIR="${startdir}/pkg" # this tries to install to /usr, but scripts/package.sh does what we want #install the packages mkdir -p $startdir/pkg/usr/lib${LIBDIRSUFFIX}/ghc-$ghcver/package.conf.d scripts/package.sh $startdir/pkg $startdir/pkg/usr/lib${LIBDIRSUFFIX}/ghc-$ghcver/package.conf.d }