void-packages/srcpkgs/ghc-bin/template

41 lines
1.1 KiB
Bash
Raw Normal View History

2014-07-09 20:01:59 +02:00
# Template file for 'ghc-bin'
pkgname=ghc-bin
2015-03-27 15:20:37 +01:00
version=7.10.1
2014-07-11 18:10:06 +02:00
revision=1
2015-03-27 15:20:37 +01:00
wrksrc="ghc-${version}"
hostmakedepends="ncurses perl"
depends="ncurses perl gcc libffi-devel gmp-devel"
2014-07-09 20:01:59 +02:00
short_desc="Glorious Haskell Compiler - precompiled binaries"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
2015-03-27 15:20:37 +01:00
license="BSD"
2014-07-09 20:01:59 +02:00
homepage="http://www.haskell.org/ghc/"
only_for_archs="i686 x86_64"
2015-03-27 15:20:37 +01:00
nostrip=yes
conflicts="ghc>=0"
2014-07-09 20:01:59 +02:00
case "$XBPS_TARGET_MACHINE" in
2014-12-24 12:47:11 +01:00
x86_64*)
2015-03-27 15:20:37 +01:00
distfiles="https://www.haskell.org/ghc/dist/${version}/ghc-${version}-x86_64-unknown-linux-deb7.tar.xz"
checksum=421f65745edb225d8697bc19ec7a10171de0eab2b88dc069f420d4f57c7bb6e2
2014-07-09 20:01:59 +02:00
;;
2014-12-24 12:47:11 +01:00
i686*)
2015-03-27 15:20:37 +01:00
distfiles="https://www.haskell.org/ghc/dist/${version}/ghc-${version}-i386-unknown-linux-deb7.tar.xz"
checksum=3a0d261a49b4cc7b48d82e9d08a65be6267faf2e803b0d0a8a8ef4a29e70752b
2014-07-09 20:01:59 +02:00
;;
esac
2015-03-27 15:20:37 +01:00
do_configure() {
./configure --prefix=/usr
}
2014-07-09 20:01:59 +02:00
do_install() {
2015-03-27 15:20:37 +01: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 \
$DESTDIR/usr/lib/ghc-${version}/rts/libtinfo.so.5
vlicense LICENSE
2014-07-09 20:01:59 +02:00
}