47 lines
1.4 KiB
Bash
47 lines
1.4 KiB
Bash
# Template file for 'ghc-bin'
|
|
pkgname=ghc-bin
|
|
version=8.4.4
|
|
revision=1
|
|
wrksrc="ghc-${version%[!0-9]}"
|
|
hostmakedepends="ncurses perl libffi libnuma"
|
|
depends="ncurses perl gcc libffi-devel gmp-devel"
|
|
short_desc="Glorious Haskell Compiler - precompiled binaries"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD"
|
|
homepage="http://www.haskell.org/ghc/"
|
|
only_for_archs="i686 x86_64 x86_64-musl"
|
|
nostrip=yes
|
|
noshlibprovides=yes
|
|
conflicts="ghc>=0 ghc-doc>=0"
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64)
|
|
distfiles="https://downloads.haskell.org/~ghc/${version%[!0-9]}/ghc-${version}-x86_64-deb8-linux.tar.xz"
|
|
checksum=4c2a8857f76b7f3e34ecba0b51015d5cb8b767fe5377a7ec477abde10705ab1a
|
|
;;
|
|
x86_64-musl)
|
|
# create with "make binary-dist"
|
|
distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-x86_64-void-linux-musl.tar.xz"
|
|
checksum=c43182c6e97c4a3f2b63f06322529bc82aa9bca35283c9d104825f36ede00b0e
|
|
;;
|
|
i686)
|
|
distfiles="https://downloads.haskell.org/~ghc/${version%[!0-9]}/ghc-${version}-i386-deb8-linux.tar.xz"
|
|
checksum=678bafaabea6af70ba71ccf0210bb437f9f5591ec28ac1cbbbd5f7aa6894e450
|
|
;;
|
|
esac
|
|
|
|
do_configure() {
|
|
./configure --prefix=/usr
|
|
}
|
|
|
|
do_install() {
|
|
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%[!0-9]}/rts/libtinfo.so.5
|
|
vlicense LICENSE
|
|
}
|