Skip to content
Permalink
83e0d7979c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 69 lines (51 sloc) 1.89 KB
#!/usr/bin/env beesh
# BEE_VERSION haskell-platform-minimal-binary-8.0.1-1
#SRCURL[0]="https://haskell.org/platform/download/$PKGVERSION/haskell-platform-${PKGVERSION}-unknown-posix--minimal-x86_64.tar.gz"
SRCURL[0]="https://beehive.molgen.mpg.de/5fb7a85e2735b1268cd9617ba93f88ec/haskell-platform-8.0.1-unknown-posix--minimal-x86_64.tar.gz"
# PATCHURL+=()
# build_in_sourcedir
# sourcesubdir_append src
BEE_EXTRACT_STRIP=0
mee_getsources_post() {
fetch_one_file "https://beehive.molgen.mpg.de/50f6a361ef3325f254885071f3bfb97a/ncurses_libs-5.7.tar"
}
#mee_extract() {
# bee_extract "${@}"
#}
#mee_patch() {
# bee_patch "${@}"
#}
#mee_configure() {
# bee_configure
#}
#mee_build() {
# bee_build
#}
mee_install() {
cd "$D"
tar -x -f "$S/hp-usr-local.tar.gz" --no-same-owner
mkdir -p "$D$BINDIR"
cd "$D/usr/local/haskell/ghc-$PKGVERSION-x86_64/bin"
for f in *; do
ln -s "/usr/local/haskell/ghc-$PKGVERSION-x86_64/bin/$f" "$D$BINDIR/"
done
mkdir -p "$D$MANDIR/man1"
cd "$D/usr/local/haskell/ghc-$PKGVERSION-x86_64/share/man/man1"
for f in *; do
ln -s "/usr/local/haskell/ghc-$PKGVERSION-x86_64/share/man/man1/$f" "$D$MANDIR/man1/"
done
mkdir -p "$D$DATAROOTIR/doc/"
ln -s "/usr/local/haskell/ghc-$PKGVERSION-x86_64/share/doc/ghc" "$D$DATAROOTIR/doc/"
cd $D/usr/local/haskell/ghc-${PKGVERSION}-x86_64/lib/ghc-${PKGVERSION}/terminfo-0.4.0.2
tar xvf $F/ncurses_libs-5.7.tar
cp ${D}/usr/local/haskell/ghc-$PKGVERSION-x86_64/bin/ghc-pkg ${B}/ghc-pkg
sed -i 's#="/usr/local#="'$D'/usr/local#' ${B}/ghc-pkg
cd ${D}
for conf in "$D/usr/local/haskell/ghc-$PKGVERSION-x86_64/etc/registrations/"*; do
# $D/usr/local/haskell/ghc-$PKGVERSION-x86_64/bin/ghc-pkg \
${B}/ghc-pkg \
--package-db $D/usr/local/haskell/ghc-$PKGVERSION-x86_64/lib/ghc-8.0.1/package.conf.d \
register \
$conf
done
}