# Might be necessary to bundle Python - to be investigated

app: KiCad
binpatch: true

ingredients:
  packages:
    - kicad
    - kicad-library
  dist: trusty
  sources:
    - deb http://archive.ubuntu.com/ubuntu/ trusty main universe
  ppas:
    - js-reynaud/ppa-kicad

script:
  - # Workaround until
  - # AppRun.c exports rather than just sets environment variables
  - cat > ./AppRun <<\EOF
  - #!/bin/sh
  - HERE="$(dirname "$(readlink -f "${0}")")"
  - export LD_LIBRARY_PATH="${HERE}"/usr/lib/x86_64-linux-gnu/:"${HERE}"/lib/x86_64-linux-gnu/:"${HERE}"/usr/lib/:"${HERE}"/lib/:$LD_LIBRARY_PATH
  - cd "${HERE}/usr"
  - exec "./bin/kicad" "$@"
  - EOF
  - chmod a+x ./AppRun

# Might be necessary to bundle Python - to be investigated

app: KiCad
binpatch: true

ingredients:
  packages:
    - kicad
    - kicad-library
    - libcurl3
  dist: trusty
  sources:
    - deb http://archive.ubuntu.com/ubuntu/ trusty main universe
  ppas:
    - js-reynaud/ppa-kicad

script:
  - # Workaround until
  - # AppRun.c exports rather than just sets environment variables
  - cat > ./AppRun <<\EOF
  - #!/bin/sh
  - HERE="$(dirname "$(readlink -f "${0}")")"
  - export LD_LIBRARY_PATH="${HERE}"/usr/lib/x86_64-linux-gnu/:"${HERE}"/lib/x86_64-linux-gnu/:"${HERE}"/usr/lib/:"${HERE}"/lib/:$LD_LIBRARY_PATH
  - cd "${HERE}/usr"
  - exec "./bin/kicad" "$@"
  - EOF
  - chmod a+x ./AppRun

Add libcurl3 because the system one may require a differen OpenSSL version
Add libcurl3 because the system one may require a differen OpenSSL version