How to create an AppImage?

Since there is no Travis CI build or other binaries, I tried with zdoom instead and it works well for me with the following zdoom.yml file.

app: zdoom
union: true

ingredients:
  dist: precise
  sources:
    - deb http://us.archive.ubuntu.com/ubuntu/ precise main universe multiverse
    - deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main universe multiverse
    - deb http://debian.drdteam.org/ stable multiverse
  script:
    - wget -c https://github.com/freedoom/freedoom/releases/download/v0.11.1/freedoom-0.11.1.zip
    - unzip freedoom-*.zip
script:
  - mv -f opt/zdoom/* usr/bin/
  - mkdir -p usr/share/games/doom
  - mv ../freedoom-*/* usr/share/games/doom/

You can use this to generate an AppImage on any deb-based system like this:

wget "https://github.com/probonopd/AppImages/blob/master/recipes/meta/Recipe"
bash -ex Recipe zdoom.yml