#!/bin/sh

EXTRARPMSDIR=`pwd`; export EXTRARPMSDIR;

cp -R $EXTRARPMSDIR/pgplot /usr/local/pgplot

cd /usr/local/pgplot

./makemake /usr/local/pgplot linux g77_gcc

make

make cpg

make clean

cp /etc/ld.so.conf /etc/ld.so.conf.temp
rm /etc/ld.so.conf

cat /usr/local/pgplot/ld.so.conf.new /etc/ld.so.conf.temp > /etc/ld.so.conf

/sbin/ldconfig

cd $EXTRARPMSDIR

exit;

