#!/bin/bash

PN="xosview"
PV="1.8.0"
P="${PN}-${PV}.tar.gz"
SRC_URI="http://twtelecom.dl.sourceforge.net/sourceforge/xosview/${P}"

clear;

echo
echo "Retrieving xosview from http://xosview.sf.net/"
echo
echo
echo
echo
echo

wget -cv ${SRC_URI} -O ${P}

tar -zxf ${P}

sleep 4

clear;

echo
echo "Now building xosview, this will take about 2 min. on an ITL lab machine"
echo
echo "                          Ignore any errors you see in the compile"
echo

sleep 7

cd "${PN}-${PV}"

./configure --prefix=/usr

make

clear;

echo
echo "Running `pwd`/xosview"
echo

./xosview

echo
echo
echo "If you're all done, 'rm -r ${PN}-${PV}*' will clean up the files"
echo
