#!/bin/sh
CWD=`pwd`
cd /tmp
rm -rf gcl-2.3
tar xzvf $CWD/gcl-2.3.6.tar.gz
cd gcl-2.3
# install docs:
mkdir -p /usr/doc/gcl-2.3.6
cp -a COPYING.LIB-2.0 ChangeLog faq machines readme doc /usr/doc/gcl-2.3.6
chown -R root.root /usr/doc/gcl-2.3.6/*
find /usr/doc/gcl-2.3.6 -type f -exec chmod 644 {} \;
chmod 755 configure
./configure --prefix=/usr \
           --enable-tkconfig=/usr/lib \
           --enable-tclconfig=/usr/lib \
           --enable-infodir=/usr/info
make
make install
( cd /usr/lib ; chown -R root.root gcl-2.3 )
( cd /usr/lib/gcl-2.3/info ; gzip -9 --force *.info *-? )
( cd /usr/lib/gcl-2.3/info ; rm texinfo.tex ; mv * /usr/info )
( cd /usr/lib/gcl-2.3 ; rm -r info ; ln -sf /usr/info . )
echo
echo 'Do not strip the binaries in this package!'
echo
echo 'See inst script example:'
## Add this to doinst.sh before running makepkg:
## patcode(tm):
#if fgrep "GCL TK Doc" usr/info/dir 1> /dev/null 2> /dev/null ; then
#  true
#else
#  cat << EOF >> usr/info/dir
#* GCL Doc: (gcl-si.info).       GNU Common Lisp specific Documentation.
#* GCL TK Doc: (gcl-tk.info).    TK window GCL interface.
#* GCL Ansi Doc: (gcl.info).  Ansi Common Lisp Specification.
#EOF
#fi
## Autogenerated portion begins:

