2014-07-09 18:01:59 +00:00
|
|
|
# Template file for 'ghc-bin'
|
|
|
|
pkgname=ghc-bin
|
2016-01-06 16:41:10 +00:00
|
|
|
version=7.10.3b
|
2014-07-11 16:10:06 +00:00
|
|
|
revision=1
|
2016-01-06 16:41:10 +00:00
|
|
|
wrksrc="ghc-${version%[!0-9]}"
|
2015-03-27 14:20:37 +00:00
|
|
|
hostmakedepends="ncurses perl"
|
|
|
|
depends="ncurses perl gcc libffi-devel gmp-devel"
|
2014-07-09 18:01:59 +00:00
|
|
|
short_desc="Glorious Haskell Compiler - precompiled binaries"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
2015-03-27 14:20:37 +00:00
|
|
|
license="BSD"
|
2014-07-09 18:01:59 +00:00
|
|
|
homepage="http://www.haskell.org/ghc/"
|
|
|
|
only_for_archs="i686 x86_64"
|
2015-03-27 14:20:37 +00:00
|
|
|
nostrip=yes
|
2016-03-15 06:38:49 +00:00
|
|
|
conflicts="ghc>=0 ghc-doc>=0"
|
2014-07-09 18:01:59 +00:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2014-12-24 11:47:11 +00:00
|
|
|
x86_64*)
|
2016-01-06 16:41:10 +00:00
|
|
|
distfiles="https://downloads.haskell.org/~ghc/${version%[!0-9]}/ghc-${version}-x86_64-deb8-linux.tar.xz"
|
|
|
|
checksum=804c75c4635353bf987c1ca120b8531c7bb4957c5b84d29c7adc4894b6fd579d
|
2014-07-09 18:01:59 +00:00
|
|
|
;;
|
2014-12-24 11:47:11 +00:00
|
|
|
i686*)
|
2016-01-06 16:41:10 +00:00
|
|
|
distfiles="https://downloads.haskell.org/~ghc/${version%[!0-9]}/ghc-${version}-i386-deb7-linux.tar.xz"
|
|
|
|
checksum=48a67d53f1bea8e07bd490cb56b77194c674ecc4d5cd228955f46eb1aceb4d29
|
2014-07-09 18:01:59 +00:00
|
|
|
;;
|
|
|
|
esac
|
2015-03-27 14:20:37 +00:00
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
./configure --prefix=/usr
|
|
|
|
}
|
2014-07-09 18:01:59 +00:00
|
|
|
|
|
|
|
do_install() {
|
2015-03-27 14:20:37 +00:00
|
|
|
ln -sf /usr/lib/libncursesw.so.6 libtinfo.so.5
|
|
|
|
export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
|
|
|
|
|
|
|
|
make install DESTDIR="$DESTDIR"
|
|
|
|
|
|
|
|
# Fake libtinfo into rpath of ghc:
|
|
|
|
ln -sf /usr/lib/libncursesw.so.6 \
|
2016-01-06 16:41:10 +00:00
|
|
|
$DESTDIR/usr/lib/ghc-${version%[!0-9]}/rts/libtinfo.so.5
|
2015-03-27 14:20:37 +00:00
|
|
|
vlicense LICENSE
|
2014-07-09 18:01:59 +00:00
|
|
|
}
|