Guest User

snapcraft.yaml

a guest
Mar 10th, 2023
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 8.24 KB | Source Code | 0 0
  1. name: cluemaster-mediadisplay-core
  2. base: core20
  3. version: '2023.03.09'
  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.  
  10. grade: stable
  11. confinement: strict
  12. compression: lzo
  13.  
  14. apps:
  15.   cluemaster-mediadisplay-core:
  16.     daemon: simple
  17.     restart-condition: always
  18.     command-chain:
  19.      - env-setup
  20.     command: usr/local/bin/x11_kiosk_launch $SNAP/bin/desktop-launch $SNAP/bin/prepare-launch $SNAP/cluemaster_display
  21.     environment:
  22.       DISABLE_WAYLAND: 1
  23.  
  24.   pulseaudio:
  25.     command: bin/pulseaudio
  26.     daemon: simple
  27.     install-mode: disable
  28.     restart-condition: always
  29.  
  30.   pactl:
  31.     command-chain: [bin/client-wrapper]
  32.     command: usr/bin/pactl
  33.  
  34.   paplay:
  35.     command-chain: [bin/client-wrapper]
  36.     command: usr/bin/paplay
  37.  
  38.   parec:
  39.     command-chain: [bin/client-wrapper]
  40.     command: usr/bin/parec
  41.  
  42.   config:
  43.     command: bin/config
  44.  
  45.  
  46. plugs:
  47.   playback:
  48.     interface: audio-playback
  49.   wayland:
  50.   network:
  51.   opengl:
  52.   network-bind:
  53.   shutdown:
  54.   hardware-observe:
  55.   alsa:
  56. slots:
  57.   audio-playback:
  58. parts:
  59.   copy-source-code:
  60.     after: [desktop-qt5]
  61.     plugin: dump
  62.     source: cluemaster_display/
  63.     stage-packages:
  64.      - ffmpeg
  65.       - libass9
  66.       - mpv
  67.       - alsa-base
  68.       - locales
  69.       - libvdpau1
  70.       - i965-va-driver
  71.       - libmpv1
  72.       - va-driver-all
  73.       - vdpau-driver-all
  74.       - mesa-va-drivers
  75.       - libvdpau-va-gl1
  76.       - libglu1-mesa
  77.       - samba-libs
  78.       - git
  79.       - python3-dbus
  80.       - qtwayland5
  81.       - mesa-utils
  82.       - libgl1-mesa-dri
  83.       - python3-pyqt5.qtmultimedia
  84.       - libqt5multimedia5-plugins
  85.       - libxkbcommon-x11-0
  86.  
  87.     stage:
  88.      - -usr/share/alsa/alsa.conf
  89.       - -usr/share/alsa/cards/HDA-Intel.conf
  90.       - -usr/share/alsa/cards/USB-Audio.conf
  91.       - -usr/share/alsa/cards/aliases.conf
  92.       - -usr/share/alsa/pcm/center_lfe.conf
  93.       - -usr/share/alsa/pcm/default.conf
  94.       - -usr/share/alsa/pcm/dmix.conf
  95.       - -usr/share/alsa/pcm/dsnoop.conf
  96.       - -usr/share/alsa/pcm/front.conf
  97.       - -usr/share/alsa/pcm/hdmi.conf
  98.       - -usr/share/alsa/pcm/iec958.conf
  99.       - -usr/share/alsa/pcm/modem.conf
  100.       - -usr/share/alsa/pcm/rear.conf
  101.       - -usr/share/alsa/pcm/side.conf
  102.       - -usr/share/alsa/pcm/surround21.conf
  103.       - -usr/share/alsa/pcm/surround40.conf
  104.       - -usr/share/alsa/pcm/surround41.conf
  105.       - -usr/share/alsa/pcm/surround50.conf
  106.       - -usr/share/alsa/pcm/surround51.conf
  107.       - -usr/share/alsa/pcm/surround71.conf
  108.       - -usr/lib/x86_64-linux-gnu/libtdb.so.1
  109.       - -usr/share/doc/libtdb1/changelog.Debian.gz
  110.  
  111.     stage-snaps: [mir-kiosk-x11]
  112.  
  113.   desktop-qt5:
  114.     source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
  115.     source-subdir: qt
  116.     plugin: make
  117.     make-parameters: ["FLAVOR=qt5"]
  118.     build-packages:
  119.      - build-essential
  120.       - qtbase5-dev
  121.       - dpkg-dev
  122.     stage-packages:
  123.      - libxkbcommon0
  124.       - ttf-ubuntu-font-family
  125.       - dmz-cursor-theme
  126.       - light-themes
  127.       - adwaita-icon-theme
  128.       - gnome-themes-standard
  129.       - shared-mime-info
  130.       - libqt5gui5
  131.       - libgdk-pixbuf2.0-0
  132.       - libqt5svg5
  133.       - try: [appmenu-qt5]
  134.       - locales-all
  135.       - xdg-user-dirs
  136.       - libdrm2
  137.       - libgbm1
  138.       - libdrm-intel1
  139.       - libdrm-nouveau2
  140.       - libdrm-radeon1
  141.       - libegl1
  142.       - libglapi-mesa
  143.       - libglvnd0
  144.       - libglx0
  145.       - fcitx-frontend-qt5
  146.  
  147.   extras:
  148.     plugin: dump
  149.     source: static/
  150.     organize:
  151.       "prepare-launch": "bin/"
  152.  
  153.   pulseaudio-common:
  154.     source: bin
  155.     plugin: dump
  156.     organize:
  157.       client-wrapper: bin/client-wrapper
  158.       config: bin/config
  159.       pulseaudio: bin/pulseaudio
  160.  
  161.   alsa-lib:
  162.     plugin: autotools
  163.     source: https://github.com/alsa-project/alsa-lib.git
  164.     source-tag: v1.2.5.1
  165.     prime:
  166.      - -usr/include
  167.       - -usr/share/aclocal
  168.       - -usr/lib/lib*.la
  169.       - -usr/lib/pkgconfig
  170.  
  171.   pulseaudio:
  172.     plugin: meson
  173.     source: https://github.com/pulseaudio/pulseaudio.git
  174.     source-tag: v15.0
  175.     source-depth: 1
  176.     after: [ alsa-lib ]
  177.     build-packages:
  178.      - check
  179.       - doxygen
  180.       - intltool
  181.       - libapparmor-dev
  182.       - libdbus-1-dev
  183.       - libjson-c-dev
  184.       - libglib2.0-dev
  185.       - libspeexdsp-dev
  186.       - libbluetooth-dev
  187.       - libltdl-dev
  188.       - libsndfile1-dev
  189.       - libtdb-dev
  190.       - libudev-dev
  191.       - libasyncns-dev
  192.       - libsbc-dev
  193.       - libsnapd-glib-dev
  194.       - libsoxr-dev
  195.     stage-packages:
  196.      - libapparmor1
  197.       - libasyncns0
  198.       - libbluetooth3
  199.       - libflac8
  200.       - libglib2.0-0
  201.       - libgomp1
  202.       - libjson-c4
  203.       - libltdl7
  204.       - libogg0
  205.       - libsbc1
  206.       - libsnapd-glib1
  207.       - libsndfile1
  208.       - libsoxr0
  209.       - libsoxr-lsr0
  210.       - libspeexdsp1
  211.       - libtdb1
  212.       - libudev1
  213.       - libvorbis0a
  214.       - libvorbisenc2
  215.     meson-parameters:
  216.      - --prefix="/usr"
  217.       - --sysconfdir=/etc
  218.       - --libexec=/usr/lib
  219.       - --libdir=/usr/lib
  220.       - --localstatedir=/var
  221.       - -Dgstreamer="disabled"
  222.       - -Dbluez5-gstreamer="disabled"
  223.       - -Dorc="disabled"
  224.       - -Dgsettings="disabled"
  225.       - -Dadrian-aec="false"
  226.       - -Dgtk="disabled"
  227.       - -Dhal-compat="false"
  228.       - -Dwebrtc-aec="disabled"
  229.       - -Doss-output="disabled"
  230.       - -Djack="disabled"
  231.       - -Dx11="disabled"
  232.       - -Dsystem_user="root"
  233.       - -Dsystem_group="root"
  234.       - -Daccess_group="root"
  235.     override-build: |
  236.      snapcraftctl build
  237.       VER=$(cd $SNAPCRAFT_PART_SRC; git tag|sed 's/^v//')
  238.       snapcraftctl set-version $VER
  239.       mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/applications
  240.     override-prime: |
  241.      snapcraftctl prime
  242.       find usr/share/doc/ -type f,l ! -name copyright | xargs rm -rf
  243.     prime:
  244.      - -usr/include
  245.       - -usr/share/zsh
  246.       - -usr/share/bash-completion
  247.       - -usr/share/man
  248.       - -usr/share/GConf
  249.       - -usr/share/lintian
  250.       - -usr/share/vala
  251.       - -usr/libexec
  252.       - -usr/lib/cmake
  253.       - -usr/lib/pkgconfig
  254.       - -usr/lib/systemd
  255.       - -etc/dconf
  256.  
  257.   alsa-plugins:
  258.     plugin: autotools
  259.     source: https://github.com/alsa-project/alsa-plugins.git
  260.     source-tag: v1.2.5
  261.     after: [ pulseaudio, alsa-lib ]
  262.     autotools-configure-parameters:
  263.      - --prefix=/usr
  264.       - --sysconfdir=/etc
  265.     prime:
  266.      - -usr/lib/alsa-lib/*.la
  267.  
  268.     stage:
  269.      - -etc/alsa/conf.d/10-speexrate.conf
  270.       - -etc/alsa/conf.d/50-arcam-av-ctl.conf
  271.       - -etc/alsa/conf.d/50-oss.conf
  272.       - -etc/alsa/conf.d/50-pulseaudio.conf
  273.       - -etc/alsa/conf.d/60-upmix.conf
  274.       - -etc/alsa/conf.d/60-vdownmix.conf
  275.       - -etc/alsa/conf.d/98-usb-stream.conf
  276.  
  277.   alsa-ucm:
  278.     plugin: dump
  279.     source: https://github.com/alsa-project/alsa-ucm-conf.git
  280.     source-tag: v1.2.5.1
  281.     after: [ alsa-plugins ]
  282.     organize:
  283.       ucm: usr/share/alsa/ucm
  284.       ucm2: usr/share/alsa/ucm2
  285.     prime:
  286.      - -README.md
  287.  
  288. environment:
  289.   LD_LIBRARY_PATH: "$SNAP/usr/lib/pulseaudio:$SNAP/usr/lib/alsa-lib"
  290.   PULSE_RUNTIME_PATH: /var/run/pulse
  291.   PULSE_STATE_PATH: $SNAP_COMMON/state
  292.   ALSA_CONFIG_UCM: $SNAP/usr/share/alsa/ucm2
  293.   ALSA_CONFIG_TPLG: $SNAP/usr/share/alsa/topology
  294.   ALSA_CONFIG_PATH: $SNAP/usr/share/alsa/alsa.conf
  295.   ALSA_MIXER_SIMPLE: $SNAP/usr/share/alsa/smixer.conf
  296.   ALSA_PLUGIN_DIR: $SNAP/usr/lib/alsa-lib
  297.  
  298.  
  299. layout:
  300.   /usr/share/X11:
  301.     bind: $SNAP/usr/share/X11
  302.   /usr/bin/xkbcomp:
  303.     symlink: $SNAP/usr/bin/xkbcomp
  304.   /usr/share/icons:
  305.     bind: $SNAP/usr/share/icons
  306.   /usr/share/fonts:
  307.     bind: $SNAP/usr/share/fonts
  308.   /usr/local/share/fonts:
  309.     bind: $SNAP/usr/local/share/fonts
  310.   /etc/fonts:
  311.     bind: $SNAP/etc/fonts
  312.   /etc/pulse:
  313.     bind: $SNAP/etc/pulse
  314.   /etc/alsa:
  315.     bind: $SNAP/etc/alsa
  316.   /var/lib/pulse:
  317.     bind: $SNAP_DATA
  318.   /usr/lib/pulse-15.0:
  319.     symlink: $SNAP/usr/lib/pulse-15.0
  320.   /usr/lib/alsa-lib:
  321.     bind: $SNAP/usr/lib/alsa-lib
  322.   /usr/share/pulseaudio:
  323.     symlink: $SNAP/usr/share/pulseaudio
  324.   /usr/share/alsa:
  325.     symlink: $SNAP/usr/share/alsa
  326.   /usr/share/applications:
  327.     bind: $SNAP/usr/share/applications
  328.  
  329.  
Add Comment
Please, Sign In to add comment