First build, gnuplot-4.4.0: maverick "src" was added to /etc/apt/sources.list.
Tricky : libwxgtk2.8-dev, libwxbase2.8-dev must be [lucid] versions,
because the [lucid-updates] currently are faulty packages.
http://packages.ubuntu.com/lucid/libwxbase2.8-dev
sudo apt-get -b source gnuplot=4.4.0-1 → → the result is ...
dpkg-deb: building .. 'gnuplot' in '../gnuplot_4.4.0-1_all.deb'.
dpkg-deb: building .. 'gnuplot-doc' in '../gnuplot-doc_4.4.0-1_all.deb'.
dpkg-deb: building .. 'gnuplot-nox' in '../gnuplot-nox_4.4.0-1_amd64.deb'.
dpkg-deb: building .. 'gnuplot-x11' in '../gnuplot-x11_4.4.0-1_amd64.deb'.
Second build : gnuplot-4.4.2 : 1) install pmake
2) sudo apt-get -b source libedit2=2.11-20080614-2
sudo dpkg -i \
libedit2_2.11-20080614-2_amd64.deb libedit-dev_2.11-20080614-2_amd64.deb
3) sudo apt-get -b source gnuplot=4.4.2-0ubuntu1 → → the result is ...
dpkg-deb: building .. 'gnuplot' in '../gnuplot_4.4.2-0ubuntu1_all.deb'.
dpkg-deb: building .. 'gnuplot-doc' in '../gnuplot-doc_4.4.2-0ubuntu1_all.deb'.
dpkg-deb: building .. 'gnuplot-nox' in '../gnuplot-nox_4.4.2-0ubuntu1_amd64.deb'.
dpkg-deb: building .. 'gnuplot-x11' in '../gnuplot-x11_4.4.2-0ubuntu1_amd64.deb'.
Probably the same for 32bits : I don't think, you told which architecture
you are using. The command 'uname -a' will tell.
I guess, I can upload the packages, if you don't want to build gnuplot.
..