snapcraft.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. name: home-assistant-toolbox
  2. base: core20
  3. version: '0.2'
  4. summary: "Extend your Home Assistant (home-assistant-snap)"
  5. description: |
  6. Toolbox contains executables that extends functionality
  7. to you home-assistant-snap installation.
  8. The following tools are included:
  9. - cURL
  10. - make (build-essential)
  11. + More to come, and feel free to come up with suggestions!
  12. Requires home-assistant-snap revision 71 or later!
  13. grade: stable
  14. confinement: strict
  15. architectures:
  16. - build-on: amd64
  17. - build-on: arm64
  18. - build-on: armhf
  19. - build-on: ppc64el
  20. slots:
  21. bin:
  22. interface: content
  23. content: executables
  24. source:
  25. read:
  26. - $SNAP/bin
  27. - $SNAP/etc
  28. - $SNAP/lib
  29. - $SNAP/usr
  30. layout:
  31. /usr/lib:
  32. bind: $SNAP/usr/lib
  33. parts:
  34. home-assistant-toolbox:
  35. plugin: dump
  36. source: ./src
  37. source-type: local
  38. dependencies: # Split this form hat, to prevent pulling it for each change
  39. plugin: nil
  40. stage-packages:
  41. - binutils
  42. - build-essential
  43. - curl
  44. - libc6-dev
  45. - linux-libc-dev
  46. override-stage: |
  47. snapcraftctl stage
  48. sed -i 's#/usr/lib#/snap/home-assistant-snap/current/shared-bin/usr/lib#g' ${SNAPCRAFT_STAGE}/usr/lib/x86_64-linux-gnu/libc.so
  49. # organize:
  50. # '*': shared-bin