extra/ghc some fixes

This commit is contained in:
moonman 2013-12-25 05:03:22 -07:00
parent 30d2c2d73b
commit 6ef9552066

View file

@ -160,13 +160,13 @@ if ! pacman -Ssq ^ghc$ > /dev/null; then
makedepends=("${makedepends[@]:1}" "ncurses")
if [ "${CARCH}" = "armv7h" ]; then
source+=("http://ftp.uk.debian.org/debian/pool/main/g/ghc/ghc_7.6.2-1_armhf.deb")
md5sums+=("5d7190b3cc48771019b47376d1e69a1c")
md5sums+=('5d7190b3cc48771019b47376d1e69a1c')
elif [ "${CARCH}" = "armv6h" ]; then
source+=("http://distribution-us.hexxeh.net/raspbian/archive/raspbian/pool/main/g/ghc/ghc_7.4.1-4+rpi1_armhf.deb")
md5sums+=("79c70db16e69b5617a3761e735db0f42")
md5sums+=('79c70db16e69b5617a3761e735db0f42')
else
source+=("http://ftp.uk.debian.org/debian/pool/main/g/ghc/ghc_7.6.2-1_armel.deb")
md5sums+=("69894b056a12a608bd4d454ffbe30d9c")
md5sums+=('69894b056a12a608bd4d454ffbe30d9c')
fi
eval "$(echo "_build()"; declare -f build | tail -n +2)"
@ -183,7 +183,12 @@ if ! pacman -Ssq ^ghc$ > /dev/null; then
tar -zxf data.tar.gz
sed "s|\"/|\"${srcdir}/|" -i usr/lib/ghc/bin/ghc{,-pkg}
sed "s| /usr| ${srcdir}/usr|" -i var/lib/ghc/package.conf.d/*
sed "s/opt-3.0/opt/" -i usr/lib/ghc/settings # correct LLVM commands
#sed "s/-3.0//" -i usr/lib/ghc/settings # correct LLVM commands
#Ugly fixes
ln -s `which opt` ${srcdir}/usr/lib/ghc/bin/opt-3.0
ln -s `which llc` ${srcdir}/usr/lib/ghc/bin/llc-3.0
ln -s /usr/lib/libffi.so.6 usr/lib/libffi.so.5
ln -s /usr/lib/libncurses.so.5 usr/lib/libtinfo.so.5
ln -fs ../../../var/lib/ghc/package.conf.d usr/lib/ghc/package.conf.d