snapcraft.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. name: btop
  2. adopt-info: btop
  3. summary: Resource monitor that shows usage and stats
  4. description: |
  5. Resource monitor that shows usage and stats for processor, memory, disks, network and processes.
  6. C++ version and continuation of bashtop and bpytop.
  7. license: Apache-2.0
  8. base: core24
  9. grade: stable
  10. confinement: strict
  11. compression: lzo
  12. contact: https://github.com/kz6fittycent/btop/issues
  13. issues: https://github.com/kz6fittycent/btop/issues
  14. source-code: https://github.com/aristocratos/btop
  15. platforms:
  16. amd64:
  17. build-on: [amd64]
  18. build-for: [amd64]
  19. arm64:
  20. build-on: [arm64]
  21. build-for: [arm64]
  22. apps:
  23. btop:
  24. command: usr/local/bin/btop
  25. environment:
  26. LC_ALL: C.UTF-8
  27. LANG: C.UTF-8
  28. plugs:
  29. - mount-observe
  30. - process-control
  31. - system-observe
  32. - hardware-observe
  33. - network
  34. - network-observe
  35. - home
  36. - removable-media
  37. - opengl
  38. parts:
  39. btop:
  40. source: https://github.com/aristocratos/btop
  41. source-type: git
  42. plugin: make
  43. make-parameters:
  44. - CC=gcc-14
  45. - CXX=g++-14
  46. - PREFIX=/usr/local
  47. - STATIC=true #required
  48. - ADDFLAGS="-D SNAPPED" #required
  49. build-packages:
  50. - coreutils
  51. - sed
  52. - git
  53. - build-essential
  54. - gcc-14
  55. - g++-14
  56. override-pull: |
  57. craftctl default
  58. craftctl set version="$(git describe --tags | sed 's/^v//' | cut -d "-" -f1)"