snapcraft.yaml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. name: home-assistant-toolbox
  2. base: core20
  3. version: '0.3'
  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. - build-essential: make, gcc etc
  11. + More to come, and feel free to come up with suggestions!
  12. This snap is required to enable some integrations in Home Assistant.
  13. These are known:
  14. - Bluetooth Tracker
  15. - Bluetooth LE Tracker
  16. Please report «none working» integrations as an issue
  17. at [github](https://github.com/home-assistant-snap/home-assistant-toolbox),
  18. so support can be added.
  19. Requires home-assistant-snap revision 71 or later!
  20. grade: stable
  21. confinement: strict
  22. architectures:
  23. - build-on: amd64
  24. - build-on: arm64
  25. - build-on: armhf
  26. #- build-on: ppc64el
  27. slots:
  28. bin:
  29. interface: content
  30. content: executables
  31. source:
  32. read:
  33. - $SNAP/bin
  34. - $SNAP/etc
  35. - $SNAP/lib
  36. - $SNAP/usr
  37. layout:
  38. /usr/lib:
  39. bind: $SNAP/usr/lib
  40. parts:
  41. home-assistant-toolbox:
  42. plugin: dump
  43. source: ./src
  44. source-type: local
  45. dependencies: # Split this from hat, to prevent pulling it for each change
  46. plugin: nil
  47. stage-packages:
  48. - binutils
  49. - build-essential
  50. - curl
  51. - libc6-dev
  52. - linux-libc-dev
  53. override-stage: |
  54. snapcraftctl stage
  55. sed -i 's#/usr/lib#/snap/home-assistant-snap/current/shared-bin/usr/lib#g' ${SNAPCRAFT_STAGE}/usr/lib/${SNAPCRAFT_ARCH_TRIPLET}/libc.so
  56. # organize:
  57. # '*': shared-bin