2014-07-09 18:01:59 +00:00
|
|
|
# Template file for 'ghc-bin'
|
|
|
|
pkgname=ghc-bin
|
2014-12-24 11:47:11 +00:00
|
|
|
version=7.8.4
|
2014-07-11 16:10:06 +00:00
|
|
|
revision=1
|
|
|
|
depends="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>"
|
|
|
|
license="custom"
|
|
|
|
homepage="http://www.haskell.org/ghc/"
|
|
|
|
only_for_archs="i686 x86_64"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2014-12-24 11:47:11 +00:00
|
|
|
x86_64*)
|
2014-07-09 18:01:59 +00:00
|
|
|
distfiles="http://code.haskell.org/~slyfox/ghc-amd64/$pkgname-$version-amd64.tbz2"
|
|
|
|
skip_extraction="$pkgname-$version-amd64.tbz2"
|
2014-12-24 11:47:11 +00:00
|
|
|
checksum=bd9d144c08caa0ff345ada8d7eed7592531b8f8b9ef2f94d0b9a42fd747440aa
|
2014-07-09 18:01:59 +00:00
|
|
|
;;
|
2014-12-24 11:47:11 +00:00
|
|
|
i686*)
|
2014-07-09 18:01:59 +00:00
|
|
|
distfiles="http://code.haskell.org/~slyfox/ghc-x86/$pkgname-$version-x86.tbz2"
|
2014-12-24 11:47:11 +00:00
|
|
|
skip_extraction="$pkgname-$version-x86.tbz2"
|
|
|
|
checksum=4c53148836e5a1ba55b8db5bb7c3eb915103e0955fb503b2facdc5a72f12a974
|
2014-07-09 18:01:59 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
create_wrksrc=yes
|
2014-07-11 08:41:26 +00:00
|
|
|
provides="ghc-${version}_${revision}"
|
|
|
|
replaces="ghc>=0"
|
2014-07-09 18:01:59 +00:00
|
|
|
|
|
|
|
do_install() {
|
2014-12-24 11:47:11 +00:00
|
|
|
vmkdir ${DESTDIR}
|
|
|
|
tar xjpvf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${skip_extraction} -C ${DESTDIR}
|
|
|
|
if [ -d ${DESTDIR}/usr/lib32 ]; then
|
|
|
|
mv ${DESTDIR}/usr/lib32 ${DESTDIR}/usr/lib
|
|
|
|
fi
|
|
|
|
if [ -d ${DESTDIR}/usr/lib64 ]; then
|
|
|
|
mv ${DESTDIR}/usr/lib64 ${DESTDIR}/usr/lib
|
|
|
|
fi
|
|
|
|
sed -i 's#x86_64-pc-linux-gnu-##g' ${DESTDIR}/usr/lib/ghc-${version}/settings
|
|
|
|
sed -i 's#i686-pc-linux-gnu-##g' ${DESTDIR}/usr/lib/ghc-${version}/settings
|
|
|
|
vlicense ${DESTDIR}/usr/share/doc/ghc-${version}/html/libraries/ghc-${version}/LICENSE
|
2014-07-09 18:01:59 +00:00
|
|
|
}
|