-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathsnapcraft.yaml
135 lines (127 loc) · 4.44 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
name: fireflyluciferin
title: Firefly Luciferin
base: core24
version: '2.19.3'
summary: Ambient lighting software
description: |
Ambient Lighting or Bias Light is a technology that enhances your viewing experience by projecting colored lights onto the wall behind
your TV/Monitor, matching the colors on the screen. This creates a more immersive and engaging atmosphere, making your favorite shows,
movies, and games feel even more captivating.
website: https://github.com/sblantipodi/firefly_luciferin
contact: https://github.com/sblantipodi/firefly_luciferin/issues
issues: https://github.com/sblantipodi/firefly_luciferin/issues
source-code: https://github.com/sblantipodi/firefly_luciferin
icon: fireflyluciferin.png
license: GPL-3.0
grade: stable
confinement: strict
platforms:
amd64:
parts:
alsa-pulseaudio:
plugin: dump
source: .
override-pull: |
mkdir etc -p
cat > etc/asound.conf <<EOF
pcm.!default {
type pulse
fallback "sysdefault"
hint {
show on
description "Default ALSA Output (currently PulseAudio Sound Server)"
}
}
ctl.!default {
type pulse
fallback "sysdefault"
}
EOF
fireflyluciferin:
plugin: nil
source: .
source-type: local
build-packages:
- wget
- libgtk2.0-dev
- libzstd1
- zstd
- tar
stage-packages:
- xdg-user-dirs
- xdg-utils
- gstreamer1.0-tools
- gstreamer1.0-alsa
- gstreamer1.0-gl
- gstreamer1.0-gtk3
- gstreamer1.0-qt5
- gstreamer1.0-x
- gstreamer1.0-plugins-base
- gstreamer1.0-plugins-good
- gstreamer1.0-plugins-bad
- gstreamer1.0-plugins-ugly
- gstreamer1.0-pulseaudio
- gstreamer1.0-libav
- libgstreamer1.0-dev
- libgstreamer-plugins-base1.0-dev
- libgstreamer-plugins-bad1.0-dev
- libayatana-appindicator3-1
- libnotify4
- libpulse0
- libpulse-dev
- libasound2
- libasound2-plugins
override-build: |
snapcraftctl build
wget https://github.com/sblantipodi/firefly_luciferin/releases/download/v2.19.3/FireflyLuciferinLinux.deb
ls -la
ar x FireflyLuciferinLinux.deb
tar xvf data.tar.zst
ls -la
ls -la opt/fireflyluciferin
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/applications
mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui
cp -R opt/fireflyluciferin/* $SNAPCRAFT_PART_INSTALL
cp opt/fireflyluciferin/lib/app/classes/build_assets/org.dpsoftware.FireflyLuciferin.snap.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications/fireflyluciferin.desktop
cp opt/fireflyluciferin/lib/app/classes/org/dpsoftware/gui/img/luciferin_logo.png $SNAPCRAFT_PART_INSTALL/meta/gui/fireflyluciferin.png
cleanup:
after: [fireflyluciferin, alsa-pulseaudio]
plugin: nil
source: .
override-prime: |
rm -rf $SNAPCRAFT_PRIME/opt/fireflyluciferin
rm -rf $SNAPCRAFT_PRIME/lib/app/fireflyluciferin*.jar
rm -rf $SNAPCRAFT_PRIME/lib/app/classes/gstreamer
rm -rf $SNAPCRAFT_PRIME/usr/include/gstreamer*
rm -rf $SNAPCRAFT_PRIME/usr/lib/x86_64-linux-gnu/gstreamer*
rm -rf $SNAPCRAFT_PRIME/usr/lib/x86_64-linux-gnu/pkgconfig/gstreamer*
rm -rf $SNAPCRAFT_PRIME/usr/lib/x86_64-linux-gnu/pkgconfig/gstreamer*
rm -rf $SNAPCRAFT_PRIME/usr/share/doc/gstreamer*
rm -rf $SNAPCRAFT_PRIME/usr/share/gstreamer*
rm -rf $SNAPCRAFT_PRIME/usr/share/icons/Humanity/apps/22/gstreamer-properties.svg
rm -rf $SNAPCRAFT_PRIME/usr/share/icons/Humanity/apps/24/gstreamer-properties.svg
rm -rf $SNAPCRAFT_PRIME/usr/share/icons/Humanity/apps/48/gstreamer-properties.svg
apps:
fireflyluciferin:
command: bin/FireflyLuciferin
desktop: usr/share/applications/fireflyluciferin.desktop
extensions: [ gnome ]
plugs:
- x11
- desktop
- network
- home
- pulseaudio
- alsa
- audio-playback
- audio-record
environment:
TMPDIR: $XDG_RUNTIME_DIR
DISABLE_WAYLAND: 1
NOTIFY_IGNORE_PORTAL: 1
ALSA_CONFIG_PATH: $SNAP/etc/asound.conf
_JAVA_OPTIONS: "-XX:+UseZGC -XX:+UseStringDeduplication -Xms64m -Xmx1024m --add-modules=jdk.incubator.vector --enable-native-access=org.dpsoftware --enable-native-access=ALL-UNNAMED"
PATH: $PWD:$SNAP/bin:$PATH
APPDIR: $SNAP/lib/app
LD_LIBRARY_PATH: $APPDIR:$LD_LIBRARY_PATH