I repackaged Lotus Notes 8.5.2 for my 64bit install for myself and decided to share. My motivation was that I dislike using the "--force-arch" option with dpkg. I also wanted to create deb files that I could send to my coworkers.
To make a no-fuss package that installs, we need to automate the getlibs part of the install, create a symlink after the package is installed, and replace the 'i386' value with 'amd64' in the control file.
Assumptions: You have the ibm-lotus-notes-8.5.2.i586.deb file, along with getlibs and dpkg installed on your system. You'll also need to grab the attached lotus-notes-8.5.2.patch.txt. The instructions assume that the patch file and the deb file are in the same directory.
Note: Using 'sudo' so permissions don't get hosed.
- Extract package contentsCode:sudo dpkg-deb -x ibm-lotus-notes-8.5.2.i586.deb ibm-lotus-notes-8.5.2
- Extract package the debian control filesCode:sudo dpkg-deb -e ibm-lotus-notes-8.5.2.i586.deb ibm-lotus-notes-8.5.2/DEBIAN
- Patch package filesCode:sudo patch -p0 -i lotus-notes-8.5.2.patch.txt
- Rebuild deb fileCode:sudo dpkg-deb -b ibm-lotus-notes-8.5.2 ibm-lotus-notes-8.5.2.amd64.deb
Now, when you install the package, getlibs will automatically download the needed 32bit libraries.
Credits: Marcus Khoo's blog post which had great info on the needed libraries