1. Download GhostPDL source code - http://www.ghostscript.com/download/gpdldnld.html eg.
    axel "http://downloads.ghostscript.com/public/ghostpdl-9.09.tar.gz"
  2. Extract it
    atool -x ghostpdl-9.09.tar.gz
  3. Install dependencies
    sudo apt-get install libxext-dev libxt-dev libjpeg-dev
  4. Enter directory
    cd ghostpdl*
  5. Prepare compilation
    ./configure
  6. Compile
    make xps
  7. Install
    sudo make install
  8. Finish installation
    sudo cp xps/obj/gxps /usr/bin/
  9. Convert
    for i in *.xps; do gxps -sDEVICE=pdfwrite -o "${i%.*}.pdf" "$i";done;

~~DISCUSSION~~