Guest User

Untitled

a guest
Jul 11th, 2021
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. name: pyqt5-test # you probably want to 'snapcraft register <name>'
  2. base: core20 # the base snap is the execution environment for this snap
  3. version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
  4. summary: Single-line elevator pitch for your amazing snap # 79 char long summary
  5. description: |
  6. This is my-snap's description. You have a paragraph or two to tell the
  7. most important story about your snap. Keep it under 100 words though,
  8. we live in tweetspace and your description wants to look good in the snap
  9. store.
  10.  
  11. grade: stable # must be 'stable' to release into candidate/stable channels
  12. confinement: devmode # use 'strict' once you have the right plugs and slots
  13.  
  14. apps:
  15. pyqt5-test:
  16. command: bin/desktop-launch python3 $SNAP/main.py
  17. plugs: [home, gsettings, x11]
  18. environment:
  19. LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/x86_64-linux-gnu
  20.  
  21. parts:
  22. copy-source-code:
  23. # See 'snapcraft plugins'
  24. plugin: dump
  25. source: .
  26.  
  27. pyqt5-test:
  28. plugin: python
  29. source: .
  30. stage-packages:
  31. - python3-pyqt5
  32. python-packages:
  33. - PyQt5==5.15.4
  34.  
  35. after: [desktop-qt5]
  36.  
  37.  
  38. desktop-qt5:
  39. source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
  40. source-subdir: qt
  41. plugin: make
  42. make-parameters: ["FLAVOR=qt5"]
  43. build-packages:
  44. - build-essential
  45. - qtbase5-dev
  46. - dpkg-dev
  47. stage-packages:
  48. - libxkbcommon0
  49. - ttf-ubuntu-font-family
  50. - dmz-cursor-theme
  51. - light-themes
  52. - adwaita-icon-theme
  53. - gnome-themes-standard
  54. - shared-mime-info
  55. - libqt5gui5
  56. - libgdk-pixbuf2.0-0
  57. - libqt5svg5 # for loading icon themes which are svg
  58. - try: [appmenu-qt5] # not available on core18
  59. - locales-all
  60. - xdg-user-dirs
  61. - fcitx-frontend-qt5
Add Comment
Please, Sign In to add comment