...
- Download PBS source from github.
- cd to pbspro/
- Install the packages listed in debian/control file.
apt-get install debhelper build-essential autotools-dev gcc automake autoconf comerr-dev libhwloc-dev libx11-dev x11proto-core-dev libxt-dev libedit-dev libical-dev libncurses-dev perl libpq-dev libpython2.7-minimal:amd64 libpython2.7-dev tcl-dev tk-dev swig dpkg-dev libexpat-dev libssl-dev zlib1g-dev:amd64 libxt-dev:amd64 libxext-dev libxft-dev dh-make debhelper devscripts fakeroot xutils lintian
- run ./autogen.sh
- run ./configure
- run make dist (Step 5 can be skipped, as this step will internally run the configure script).
- Step 6 will create pbspro-<version>.tar.gz
- Copy the pbspro-<version>.tar.gz to a two-level directory, e.g. ../build/build/
- Extract the pbspro-<version>.tar.gz
- cd to pbspro-<version> directory.
- run dh_make
- As debian/ directory is already present, we need to run dh_make --createorig -m
- This will create files required by build/packaging machinery in the parent directory.
- run dpkg-buildpackage -rfakeroot -uc -us
- Step 12 will create the .deb files in the parent directory.
...