62 lines
2.0 KiB
Bash
62 lines
2.0 KiB
Bash
# Template file for 'ghc-bin'
|
|
pkgname=ghc-bin
|
|
version=8.10.7
|
|
revision=1
|
|
archs="i686 x86_64* ppc64le* ppc64"
|
|
wrksrc="ghc-${version%[!0-9]}"
|
|
hostmakedepends="perl libffi libnuma"
|
|
depends="ncurses perl gcc libffi-devel gmp-devel"
|
|
short_desc="Glorious Haskell Compiler - precompiled binaries"
|
|
maintainer="slotThe <soliditsallgood@mailbox.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="http://www.haskell.org/ghc/"
|
|
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-deb9-linux.tar.xz"
|
|
checksum=ced9870ea351af64fb48274b81a664cdb6a9266775f1598a79cbb6fdd5770a23
|
|
;;
|
|
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=52f6492f39f13890f4ecd83784724ae9fff7a02fdc624a56c49872c912608a50
|
|
;;
|
|
i686)
|
|
distfiles="https://downloads.haskell.org/~ghc/${version%[!0-9]}/ghc-${version}-i386-deb9-linux.tar.xz"
|
|
checksum=fbfc1ef194f4e7a4c0da8c11cc69b17458a4b928b609b3622c97acc4acd5c5ab
|
|
;;
|
|
ppc64le)
|
|
distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-powerpc64le-void-linux.tar.xz"
|
|
checksum=4662c88bc642941d9d463fd4878fc799e081c6fc5b10d2df5fa48e0cadea888c
|
|
;;
|
|
ppc64le-musl)
|
|
distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-powerpc64le-void-linux-musl.tar.xz"
|
|
checksum=c01b2d9d4c7b05a62f79b24e374413ac524116cbe5fb7c20673d62b8c3eebf10
|
|
;;
|
|
ppc64)
|
|
distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-powerpc64-void-linux.tar.xz"
|
|
checksum=b8578e602abd4b453845303fb9cfed0b2186f86f60e3aa45869026ea833726c8
|
|
;;
|
|
*)
|
|
broken="No distfiles available for this target"
|
|
;;
|
|
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
|
|
}
|