Guest User

snapcraft.yaml

a guest
Mar 30th, 2023
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 8.06 KB | None | 0 0
  1. name: cluemaster-mediadisplay-core
  2. base: core22
  3. version: '2023.03.28'
  4. summary: Clumaster.io Media Display for Escape Rooms
  5. description: |
  6.  ClueMaster Media Display is a Dynamic TV Display software for escape rooms.
  7.   It shows escape room countdown timers, visual text messages, video, audio,
  8.   and photo clues.
  9. grade: stable
  10. confinement: strict
  11.  
  12. apps:
  13.   cluemaster-mediadisplay-core:
  14.     command-chain: &_command-chain
  15.       - bin/graphics-core22-wrapper
  16.     command: &_command bin/prepare-launch $SNAP/cluemaster_display
  17.     environment: &_environment
  18.       DISABLE_WAYLAND: 1
  19.       QT_PLUGIN_PATH: ${SNAP}/PyQt5/Qt/plugins/
  20.       QT_QPA_PLATFORM_PLUGIN_PATH: ${SNAP}/PyQt5/Qt/plugins/platforms/
  21.  
  22.   dameon:
  23.     daemon: simple
  24.     restart-condition: always
  25.     restart-delay: 3s
  26.     command-chain: *_command-chain
  27.     command: *_command
  28.     environment: *_environment
  29.  
  30.   pulseaudio:
  31.     command: bin/pulseaudio
  32.     daemon: simple
  33.     restart-condition: always
  34.     install-mode: enable
  35.  
  36.   pactl:
  37.     command-chain: [bin/client-wrapper]
  38.     command: usr/bin/pactl
  39.  
  40.   paplay:
  41.     command-chain: [bin/client-wrapper]
  42.     command: usr/bin/paplay
  43.  
  44.   parec:
  45.     command-chain: [bin/client-wrapper]
  46.     command: usr/bin/parec
  47.  
  48.   config:
  49.     command: bin/config
  50.  
  51. plugs:
  52.   playback:
  53.     interface: audio-playback
  54.   wayland:
  55.   network:
  56.   network-bind:
  57.   shutdown:
  58.   opengl:
  59.   hardware-observe:
  60.   alsa:
  61.   plugs:
  62.     graphics-core22:
  63.       interface: content
  64.       target: $SNAP/graphics
  65.       default-provider: mesa-core22
  66.  
  67. slots:
  68.   audio-playback:
  69. parts:
  70.   copy-source-code:
  71.     plugin: dump
  72.     source: cluemaster_display/
  73.     stage-packages:
  74.      - ffmpeg
  75.       - libass9
  76.       - mpv
  77.       - alsa-base
  78.       - locales
  79.       - libvdpau1
  80.       - i965-va-driver
  81.       - libmpv1
  82.       - va-driver-all
  83.       - vdpau-driver-all
  84.       - mesa-va-drivers
  85.       - libvdpau-va-gl1
  86.       - libglu1-mesa
  87.       - samba-libs
  88.       - git
  89.       - python3-dbus
  90.       - qtwayland5
  91.       - mesa-utils
  92.       - libgl1-mesa-dri
  93.       - python3-pyqt5.qtmultimedia
  94.       - libqt5multimedia5-plugins
  95.       - libxkbcommon0
  96.       - locales-all
  97.       - xdg-user-dirs
  98.       - libdrm2
  99.       - libgbm1
  100.       - libdrm-intel1
  101.       - libdrm-nouveau2
  102.       - libdrm-radeon1
  103.       - libegl1
  104.       - libglapi-mesa
  105.       - libglvnd0
  106.       - libglx0
  107.       - fcitx-frontend-qt5
  108.       - meson
  109.  
  110.   extras:
  111.     plugin: dump
  112.     source: static/
  113.     organize:
  114.       "prepare-launch": "bin/"
  115.  
  116.   pulseaudio-common:
  117.     source: bin
  118.     plugin: dump
  119.     organize:
  120.       client-wrapper: bin/client-wrapper
  121.       config: bin/config
  122.       pulseaudio: bin/pulseaudio
  123.   alsa-lib:
  124.     plugin: autotools
  125.     source: https://github.com/alsa-project/alsa-lib.git
  126.     source-tag: v1.2.5.1
  127.     prime:
  128.      - -usr/include
  129.       - -usr/share/aclocal
  130.       - -usr/lib/lib*.la
  131.       - -usr/lib/pkgconfig
  132.   pulseaudio:
  133.     plugin: meson
  134.     source: https://github.com/pulseaudio/pulseaudio.git
  135.     source-tag: v15.0
  136.     source-depth: 1
  137.     after: [ alsa-lib ]
  138.     build-packages:
  139.      - check
  140.       - doxygen
  141.       - intltool
  142.       - libapparmor-dev
  143.       - libdbus-1-dev
  144.       - libjson-c-dev
  145.       - libglib2.0-dev
  146.       - libspeexdsp-dev
  147.       - libbluetooth-dev
  148.       - libltdl-dev
  149.       - libsndfile1-dev
  150.       - libtdb-dev
  151.       - libudev-dev
  152.       - libasyncns-dev
  153.       - libsbc-dev
  154.       - libsnapd-glib-dev
  155.       - libsoxr-dev
  156.     stage-packages:
  157.      - libapparmor1
  158.       - libasyncns0
  159.       - libbluetooth3
  160.       - libflac8
  161.       - libglib2.0-0
  162.       - libgomp1
  163.       - libjson-c4
  164.       - libltdl7
  165.       - libogg0
  166.       - libsbc1
  167.       - libsnapd-glib1
  168.       - libsndfile1
  169.       - libsoxr0
  170.       - libsoxr-lsr0
  171.       - libspeexdsp1
  172.       - libtdb1
  173.       - libudev1
  174.       - libvorbis0a
  175.       - libvorbisenc2
  176.     meson-parameters:
  177.      - --prefix="/usr"
  178.       - --sysconfdir=/etc
  179.       - --libexec=/usr/lib
  180.       - --libdir=/usr/lib
  181.       - --localstatedir=/var
  182.       - -Dgstreamer="disabled"
  183.       - -Dbluez5-gstreamer="disabled"
  184.       - -Dorc="disabled"
  185.       - -Dgsettings="disabled"
  186.       - -Dadrian-aec="false"
  187.       - -Dgtk="disabled"
  188.       - -Dhal-compat="false"
  189.       - -Dwebrtc-aec="disabled"
  190.       - -Doss-output="disabled"
  191.       - -Djack="disabled"
  192.       - -Dx11="disabled"
  193.       - -Dsystem_user="root"
  194.       - -Dsystem_group="root"
  195.       - -Daccess_group="root"
  196.     override-build: |
  197.      snapcraftctl build
  198.       VER=$(cd $SNAPCRAFT_PART_SRC; git tag|sed 's/^v//')
  199.       snapcraftctl set-version $VER
  200.       mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/applications
  201.     override-prime: |
  202.      snapcraftctl prime
  203.       find usr/share/doc/ -type f,l ! -name copyright | xargs rm -rf
  204.     prime:
  205.      - -usr/include
  206.       - -usr/share/zsh
  207.       - -usr/share/bash-completion
  208.       - -usr/share/man
  209.       - -usr/share/GConf
  210.       - -usr/share/lintian
  211.       - -usr/share/vala
  212.       - -usr/libexec
  213.       - -usr/lib/cmake
  214.       - -usr/lib/pkgconfig
  215.       - -usr/lib/systemd
  216.       - -etc/dconf
  217.   alsa-plugins:
  218.     plugin: autotools
  219.     source: https://github.com/alsa-project/alsa-plugins.git
  220.     source-tag: v1.2.5
  221.     after: [ pulseaudio, alsa-lib ]
  222.     autotools-configure-parameters:
  223.      - --prefix=/usr
  224.       - --with-alsalconfdir=/etc/alsa/conf.d
  225.       - --sysconfdir=/etc/alsa/conf.d
  226.     prime:
  227.      - -usr/lib/alsa-lib/*.la
  228.     override-prime: |
  229.      snapcraftctl prime
  230.       # make links relative
  231.       cd etc/alsa/conf.d
  232.       for link in $(find . -type l); do
  233.         newlink=$(readlink $link|sed 's;^/;../../../;')
  234.         ln -sf $newlink $link
  235.       done
  236.       cd -
  237.   alsa-ucm:
  238.     plugin: dump
  239.     source: https://github.com/alsa-project/alsa-ucm-conf.git
  240.     source-tag: v1.2.5.1
  241.     after: [ alsa-plugins ]
  242.     organize:
  243.       ucm: usr/share/alsa/ucm
  244.       ucm2: usr/share/alsa/ucm2
  245.     prime:
  246.      - -README.md
  247.  
  248.   graphics-core22:
  249.     after:
  250.      - copy-source-code
  251.       - extras
  252.       - pulseaudio-common
  253.       - alsa-lib
  254.       - pulseaudio
  255.       - alsa-plugins
  256.       - alsa-ucm
  257.     source: https://github.com/MirServer/graphics-core22.git
  258.     plugin: dump
  259.     override-prime: |
  260.      craftctl default
  261.       ${CRAFT_PART_SRC}/bin/graphics-core22-cleanup mesa-core22 nvidia-core22
  262.     prime:
  263.    - bin/graphics-core22-wrapper
  264.  
  265. environment:
  266.   LD_LIBRARY_PATH: "$SNAP/usr/lib/pulseaudio:$SNAP/usr/lib/alsa-lib:$SNAP/graphics/lib"
  267.   PULSE_RUNTIME_PATH: /var/run/pulse
  268.   PULSE_STATE_PATH: $SNAP_COMMON/state
  269.   ALSA_CONFIG_UCM: $SNAP/usr/share/alsa/ucm2
  270.   ALSA_CONFIG_TPLG: $SNAP/usr/share/alsa/topology
  271.   ALSA_CONFIG_PATH: $SNAP/usr/share/alsa/alsa.conf
  272.   ALSA_MIXER_SIMPLE: $SNAP/usr/share/alsa/smixer.conf
  273.   ALSA_PLUGIN_DIR: $SNAP/usr/lib/alsa-lib
  274.   LIBGL_DRIVERS_PATH: $SNAP/graphics/dri
  275.   LIBVA_DRIVERS_PATH: $SNAP/graphics/dri
  276.   __EGL_VENDOR_LIBRARY_DIRS: $SNAP/graphics/glvnd/egl_vendor.d
  277.   XDG_CACHE_HOME: $SNAP_USER_COMMON/.cache
  278.   XDG_CONFIG_HOME: $SNAP_USER_DATA/.config
  279.   XDG_CONFIG_DIRS: $SNAP/etc/xdg
  280.   XKB_CONFIG_ROOT: $SNAP/usr/share/X11/xkb
  281.  
  282.  
  283. layout:
  284.   /usr/share/X11:
  285.     bind: $SNAP/usr/share/X11
  286.   /usr/bin/xkbcomp:
  287.     symlink: $SNAP/usr/bin/xkbcomp
  288.   /usr/share/icons:
  289.     bind: $SNAP/usr/share/icons
  290.   /usr/share/fonts:
  291.     bind: $SNAP/usr/share/fonts
  292.   /usr/local/share/fonts:
  293.     bind: $SNAP/usr/local/share/fonts
  294.   /etc/fonts:
  295.     bind: $SNAP/etc/fonts
  296.   /etc/pulse:
  297.     bind: $SNAP/etc/pulse
  298.   /etc/alsa:
  299.     bind: $SNAP/etc/alsa
  300.   /var/lib/pulse:
  301.     bind: $SNAP_DATA
  302.   /usr/lib/pulse-15.0:
  303.     symlink: $SNAP/usr/lib/pulse-15.0
  304.   /usr/lib/alsa-lib:
  305.     bind: $SNAP/usr/lib/alsa-lib
  306.   /usr/share/pulseaudio:
  307.     symlink: $SNAP/usr/share/pulseaudio
  308.   /usr/share/alsa:
  309.     symlink: $SNAP/usr/share/alsa
  310.   /usr/share/applications:
  311.     bind: $SNAP/usr/share/applications
  312.   /usr/share/drirc.d:
  313.     symlink: $SNAP_COMMON/graphics/usr/share/drirc.d
  314.   /usr/share/X11/XErrorDB:
  315.     bind: $SNAP/graphics/usr/share/X11/XErrorDB
  316.   /usr/share/X11/locale:
  317.     bind: $SNAP/graphics/usr/share/X11/locale
  318.   /usr/share/libdrm:
  319.     bind: $SNAP/graphics/libdrm
  320.  
Add Comment
Please, Sign In to add comment