51 lines
1.6 KiB
Bash
51 lines
1.6 KiB
Bash
# Template file for 'ghc-bin'
|
|
pkgname=ghc-bin
|
|
version=8.8.3
|
|
revision=1
|
|
archs="i686 x86_64* ppc64le"
|
|
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-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-deb8-linux.tar.xz"
|
|
checksum=92b9fadc442976968d2c190c14e000d737240a7d721581cda8d8741b7bd402f0
|
|
;;
|
|
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=50b7aff7d3d43b010e571df73e78e3c0169c671a55adbfee28753516ce1c2dc5
|
|
;;
|
|
i686)
|
|
distfiles="https://downloads.haskell.org/~ghc/${version%[!0-9]}/ghc-${version}-i386-deb9-linux.tar.xz"
|
|
checksum=441e2c7a4fc83ebf179712bd939b555cda7c6633545b7c8ac38049f9d85003ae
|
|
;;
|
|
ppc64le)
|
|
distfiles="https://alpha.de.repo.voidlinux.org/distfiles/ghc-${version}-powerpc64le-void-linux.tar.xz"
|
|
checksum=0c8df56aa0177459894ba53375115ab76f8eed9f4b1018fae5c332bcc6b79cb4
|
|
;;
|
|
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
|
|
}
|