This gist includes the keepassx 2.0.2 (with Twofish support), built under a Virtual Machine with a vanilla Debian 8.3 (i386) using the following commands (as root):
apt-get install build-essential cmake libqt4-dev libgcrypt11-dev zlib1g-dev libxtst-dev makeself wget ca-certificates
ver=2.0.2
wget https://www.keepassx.org/releases/$ver/keepassx-$ver.tar.gz
tar xzf keepassx-$ver.tar.gz
cd keepassx-$ver
wget -O- https://github.com/drizzt/keepassx/commit/2545bd84d05020d4ca967f4e21fc20266297e4d6.patch | patch -Np1
wget -O- https://github.com/drizzt/keepassx/commit/0c05715ee4da90e6c2d42a3d10917adf359ed3e4.patch | patch -Np1
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
rm -rf ~/keepassx.out
make install DESTDIR=~/keepassx.out
strip --strip-unneeded /root/keepassx.out/usr/local/keepassx
makeself --nox11 ~/keepassx.out/usr/local ~/keepassx.run "keepassx $ver" ./bin/keepassx '--config '\''"$(readlink -f "$(dirname "$0")")"'\''/keepassx2.ini'