app: CodeBlocks
binpatch: true

ingredients:
  dist: jessie
  sources:
    - deb http://ftp.us.debian.org/debian/ jessie main
    - deb http://ftp.us.debian.org/debian/ jessie-backports main

script:
  - cat > AppRun <<\EOF
  - #!/bin/bash
  - HERE="$(dirname "$(readlink -f "${0}")")"
  - export LD_LIBRARY_PATH=${HERE}/usr/lib:${HERE}/usr/lib/x86_64-linux-gnu/:${HERE}/usr/lib/codeblocks:${HERE}/lib:${HERE}/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
  - cd "${HERE}/usr"
  - CODEBLOCKS_DATA_DIR="${HERE}/usr" "${HERE}/usr/bin/codeblocks.wrapper" "$@"
  - EOF

app: CodeBlocks
binpatch: true

ingredients:
  dist: precise
  sources:
    - deb http://archive.ubuntu.com/ubuntu precise main universe
  ppas: 
    - damien-moore/codeblocks-stable
  packages:
    - codeblocks
    - codeblocks-contrib

script:
  - cat > AppRun <<\EOF
  - #!/bin/bash
  - HERE="$(dirname "$(readlink -f "${0}")")"
  - export LD_LIBRARY_PATH=${HERE}/usr/lib:${HERE}/usr/lib/x86_64-linux-gnu/:${HERE}/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
  - CODEBLOCKS_DATA_DIR="${HERE}/usr" "${HERE}/usr/bin/codeblocks.wrapper" "$@"
  - EOF
  - sed -i -e 's/:://g' codeblocks.desktop

Change the recipe to use Ubuntu Precise and Code::Blocks PPA
Change the recipe to use Ubuntu Precise and Code::Blocks PPA

Now the recipe uses the oficial Code::Blocks PPA for Ubuntu Precise which is older than the previous recibe version using Debian jessie.
Also install codeblocks-contrib plugins and change the Desktop file so the generated AppImage file doesn't contain "::" in the name, which causes LD_LIBRARY_PATH to go nuts.