void-packages/srcpkgs/ghc-bin/template

41 lines
1.1 KiB
Bash
Raw Normal View History

2014-07-09 18:01:59 +00:00
# Template file for 'ghc-bin'
pkgname=ghc-bin
2015-08-03 15:10:57 +00:00
version=7.10.2
2014-07-11 16:10:06 +00:00
revision=1
2015-03-27 14:20:37 +00:00
wrksrc="ghc-${version}"
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
conflicts="ghc>=0"
2014-07-09 18:01:59 +00:00
case "$XBPS_TARGET_MACHINE" in
2014-12-24 11:47:11 +00:00
x86_64*)
2015-03-27 14:20:37 +00:00
distfiles="https://www.haskell.org/ghc/dist/${version}/ghc-${version}-x86_64-unknown-linux-deb7.tar.xz"
2015-08-03 15:10:57 +00:00
checksum=0144791f0cc5ef5991356b3b3a4521da8072dd1c216a48e7d2dfbbdca827cdf1
2014-07-09 18:01:59 +00:00
;;
2014-12-24 11:47:11 +00:00
i686*)
2015-03-27 14:20:37 +00:00
distfiles="https://www.haskell.org/ghc/dist/${version}/ghc-${version}-i386-unknown-linux-deb7.tar.xz"
2015-08-03 15:10:57 +00:00
checksum=7a4ea84ba30df422319d4a706883492398204574e02254f08c8dff688d318350
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 \
$DESTDIR/usr/lib/ghc-${version}/rts/libtinfo.so.5
vlicense LICENSE
2014-07-09 18:01:59 +00:00
}