ghc.paketlendi

This commit is contained in:
milisbir 2017-09-08 01:24:35 +03:00
parent d5391d49b9
commit d382250afb
2 changed files with 60 additions and 3 deletions

View File

@ -0,0 +1,56 @@
# Description: Glasgow Haskell derleyicisi
# URL: http://www.haskell.org/haskellwiki/Glasgow_Haskell_Compiler
# Packager: milisarge
# Depends on: docbook-xsl libedit libffi
name=ghc
version=8.0.2
release=1
source=(https://downloads.haskell.org/~ghc/$version/$name-$version-src.tar.xz)
build() {
# if ghc is not previously installed bootstrap it
if [ ! -e /usr/bin/ghc ]; then
# download binary bootstrap file if it does not exist
if [ ! -f "$DERLEME_KAYNAKDIZIN/$name-$version-x86_64-centos67-linux.tar.xz" ]; then
wget http://downloads.haskell.org/~ghc/$version/$name-$version-x86_64-centos67-linux.tar.xz \
--output-document="$DERLEME_KAYNAKDIZIN/$name-$version-x86_64-centos67-linux.tar.xz"
fi
install -d tmp
cd tmp
bsdtar -xf "$DERLEME_KAYNAKDIZIN/$name-$version-x86_64-centos67-linux.tar.xz"
mv $name-$version ../$name-$version-binary
cd -
rmdir tmp
cd $name-$version-binary
# hack for gmp and ncurses for bootstrap binary ghc
ln -s /lib/libgmp.so.10 libgmp.so.3
ln -s /lib/libncurses.so.6 libtinfo.so.5
export LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH"
./configure --prefix=$SRC/binary
make install
cd $SRC
export PATH="$SRC/binary/bin:$PATH"
fi
cd $name-$version
./configure \
--prefix=/usr \
--docdir=/usr/share/doc/ghc \
--with-system-libffi \
--with-ffi-includes=$(pkg-config --variable=includedir libffi)
make
make -j1 DESTDIR=$PKG install
rm -r $PKG/usr/share/doc
}

View File

@ -4,9 +4,9 @@
# Depends on:
name=libedit
version=20140620.3.1
release=2
_version=20140620-3.1
_version=20170329-3.1
version=${_version/-/_}
release=1
source=(http://www.thrysoee.dk/editline/libedit-${_version}.tar.gz)
@ -16,4 +16,5 @@ build(){
--enable-widec
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share/man
}