It's completely graphical and automatically checks if the packages you have are up-to-date, if they aren't, new ones are extracted.
It would be useful to use this script for all the other packages, note that Ubuntu uses dash instead of bash, so pushd and popd aren't available.
Place this in the 'postinst' file in the ./DEBIAN folder:
Code: Select all
#!/bin/bash
set -e
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
start_directory=$( pwd )
cd /tmp
anw=`zenity --question --text "Download and install RA packages? (This might take a while) [Y/n]"; echo $?`
if [ $anw = 0 ] ; then
cd /tmp/
wget "http://open-ra.org/get-dependency.php?file=ra-packages" -O ra-packages.zip
mkdir -p /usr/share/openra/mods/ra/packages
unzip -f ra-packages.zip -d /usr/share/openra/mods/ra/packages
rm ra-packages.zip
cd $start_directory
else
break
fi
anw=`zenity --question --text "Download and install C&C packages? (This might take a while) [Y/n]"; echo $?`
if [ $anw = 0 ] ; then
cd /tmp/
wget "http://open-ra.org/get-dependency.php?file=cnc-packages" -O cnc-packages.zip
mkdir -p /usr/share/openra/mods/cnc/packages
unzip -f cnc-packages.zip -d usr/share/openra/mods/cnc/packages
rm cnc-packages.zip
cd $start_directory
else
break
fi
sudo gacutil -i /usr/share/openra/thirdparty/Tao/Tao.Cg.dll
sudo gacutil -i /usr/share/openra/thirdparty/Tao/Tao.FreeType.dll
sudo gacutil -i /usr/share/openra/thirdparty/Tao/Tao.OpenAl.dll
sudo gacutil -i /usr/share/openra/thirdparty/Tao/Tao.OpenGl.dll
sudo gacutil -i /usr/share/openra/thirdparty/Tao/Tao.Sdl.dll
gacutil -i /usr/share/openra/thirdparty/Tao/Tao.Cg.dll
gacutil -i /usr/share/openra/thirdparty/Tao/Tao.FreeType.dll
gacutil -i /usr/share/openra/thirdparty/Tao/Tao.OpenAl.dll
gacutil -i /usr/share/openra/thirdparty/Tao/Tao.OpenGl.dll
gacutil -i /usr/share/openra/thirdparty/Tao/Tao.Sdl.dll
# End automatically added section