If you have installed a package with unmet dependencies using dpkg (e.g., installing xnviewmp without ia32-libs) you can use the command below to correct the dependencies.
I've updated the install script to test the architecture of the xnview binary prior to creating the deb package. If you're downloading the 64-bit version of xnviewmp then you don't need to install the ia32-libs package which is only necessary for installing a 32-bit application on a 64-bit system ...
I've updated and simplified this guide for Ubuntu Lucid (10.04). A bash script has been created and attached to the first post in this thread that will auto-generate and install the deb package. Please post any bugs you discover in the install script.
You can use the attached script to create a deb package for xnviewmp. Prior to running this script please make sure you have the following packages installed.
sudo apt-get install wget tar gzip dpkg coreutils sed gdebi
Download the attachment to this post Extract the install-xnviewmp script ...