Guest User

snapcraft

a guest
Jul 8th, 2021
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.06 KB | None | 0 0
  1. name: mysnap-test-1 # 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: cluemaster application for linux # 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: devel # must be 'stable' to release into candidate/stable channels
  12. confinement: devmode # use 'strict' once you have the right plugs and slots
  13. # adopt-info: cluemaster
  14. # assumes: command-chain
  15.  
  16.  
  17. apps:
  18.   cluemaster:
  19.     adapter: full
  20.     command: bin/desktop-launch $SNAP/parts/cluemaster/src/cluemaster.
  21.     # command-chain:
  22.     #   - bin/desktop-launch
  23.     # environment:
  24.     #   DISBALE_WAYLAND : 1
  25.     #   QT_QPA_PLATFORMTHEME: gtk3
  26.     plugs:
  27.      - network
  28.       - home
  29.       - desktop
  30.       - x11
  31.       - pulseaudio
  32.       - wayland
  33.       - optical-drive
  34.       - unity7
  35.       - gsettings
  36.       - network-bind
  37.  
  38. parts:
  39.   cluemaster:
  40.    # See 'snapcraft plugins'
  41.     plugin: python
  42.     python-packages:
  43.      - PyQt5
  44.       - requests
  45.  
  46.     stage-packages:
  47.      - python3-pyqt5
  48.       - mpv
  49.       - qtwayland5
  50.       - python3
  51.       - python3-pip
  52.       - libva-wayland2
  53.       - libavahi-client3
  54.       - libavahi-common3
  55.       - libcups2
  56.       - libdrm2
  57.       - libegl1
  58.       - libevdev2
  59.       - libfontconfig1
  60.       - libfreetype6
  61.       - libgl1
  62.       - libglvnd0
  63.       - libglx0
  64.       - libgudev-1.0-0
  65.       - libinput10
  66.       - libmtdev1
  67.       - libpng16-16
  68.       - libqt5gui5
  69.       - libqt5widgets5
  70.       - libqt5core5a
  71.       - libqt5svg5
  72.       - libwacom2
  73.       - libwayland-client0
  74.       - libx11-6
  75.       - libx11-xcb1
  76.       - libxau6
  77.       - libxcb-glx0
  78.       - libxcb-icccm4
  79.       - libxcb-image0
  80.       - libxcb-keysyms1
  81.       - libxcb-randr0
  82.       - libxcb-render-util0
  83.       - libxcb-render0
  84.       - libxcb-shape0
  85.       - libxcb-shm0
  86.       - libxcb-sync1
  87.       - libxcb-util1
  88.       - libxcb-xfixes0
  89.       - libxcb-xinerama0
  90.       - libxcb-xkb1
  91.       - libxcb1
  92.       - libxdmcp6
  93.       - libxext6
  94.       - libxkbcommon-x11-0
  95.       - libxkbcommon0
  96.  
  97.     source: code/
  98.  
  99.   desktop-qt5:
  100.     source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
  101.     source-depth: 1
  102.     source-subdir: qt
  103.  
  104.     plugin: make
  105.     make-parameters: ["FLAVOR=qt5"]
  106.     stage-packages:
  107.       - libxkbcommon0
  108.       - ttf-ubuntu-font-family
  109.       - dmz-cursor-theme
  110.       - light-themes
  111.       - adwaita-icon-theme
  112.       - gnome-themes-standard
  113.       - shared-mime-info
  114.       - libqt5core5a
  115.       - libqt5widgets5
  116.       - libqt5gui5
  117.       - libgdk-pixbuf2.0-0
  118.       - libqt5svg5 # for loading icon themes which are svg
  119.       - try: [appmenu-qt5] # not available on core18
  120.       - locales-all
  121.       - xdg-user-dirs
  122.       - fcitx-frontend-qt5
  123.  
  124. layout:
  125.   /usr/share/locale:
  126.     bind: $SNAP/share/locale
Add Comment
Please, Sign In to add comment