#!/bin/bash

WHERE=http://www.riverbankcomputing.co.uk/static/Downloads/sip4/
PKG=sip-snapshot-4.10.3-f760366cea3b

pushd ../SOURCES
if [ ! -f $PKG.tar.gz ]; then
    wget $WHERE/$PKG.tar.gz
fi
popd

pushd ../BUILD
rm -rf $PKG
tar xfz ../SOURCES/$PKG.tar.gz

pushd $PKG
python configure.py -u
make
make install
popd # $PKG

rm -rf $PKG
tar xfz ../SOURCES/$PKG.tar.gz

pushd $PKG
python3 configure.py -u
make
make install
popd # $PKG

popd # ../BUILD

# EOF
