Fix snap issues
This commit is contained in:
parent
368bb54870
commit
6dbb8751b2
@ -15,6 +15,12 @@ parts:
|
|||||||
source-type: git
|
source-type: git
|
||||||
source: https://github.com/jonaski/strawberry
|
source: https://github.com/jonaski/strawberry
|
||||||
after: [desktop-qt5]
|
after: [desktop-qt5]
|
||||||
|
override-build: |
|
||||||
|
cmake ../src -DCMAKE_INSTALL_PREFIX=/usr
|
||||||
|
make -j $(getconf _NPROCESSORS_ONLN)
|
||||||
|
make DESTDIR=$SNAPCRAFT_PART_INSTALL install
|
||||||
|
sed -i 's|Icon=strawberry|Icon=/usr/share/icons/hicolor/128x128/apps/strawberry\.png|' $SNAPCRAFT_PART_INSTALL/usr/share/applications/org.strawbs.strawberry.desktop
|
||||||
|
sed -i 's|TryExec=.*|TryExec=/snap/bin/strawberry|' $SNAPCRAFT_PART_INSTALL/usr/share/applications/org.strawbs.strawberry.desktop
|
||||||
|
|
||||||
build-packages:
|
build-packages:
|
||||||
- cmake
|
- cmake
|
||||||
@ -78,6 +84,7 @@ parts:
|
|||||||
- zlib1g
|
- zlib1g
|
||||||
- libx11-6
|
- libx11-6
|
||||||
- libdb5.3
|
- libdb5.3
|
||||||
|
- dbus-x11
|
||||||
- libgstreamer1.0-0
|
- libgstreamer1.0-0
|
||||||
- libgstreamer-plugins-base1.0-0
|
- libgstreamer-plugins-base1.0-0
|
||||||
- gstreamer1.0-alsa
|
- gstreamer1.0-alsa
|
||||||
@ -87,31 +94,38 @@ parts:
|
|||||||
- gstreamer1.0-plugins-bad
|
- gstreamer1.0-plugins-bad
|
||||||
- gstreamer1.0-plugins-ugly
|
- gstreamer1.0-plugins-ugly
|
||||||
- gstreamer1.0-libav
|
- gstreamer1.0-libav
|
||||||
|
- oxygen-icon-theme
|
||||||
|
- breeze-icon-theme
|
||||||
|
|
||||||
apps:
|
apps:
|
||||||
strawberry:
|
strawberry:
|
||||||
command: desktop-launch $SNAP/bin/strawberry
|
command: desktop-launch $SNAP/usr/bin/strawberry
|
||||||
desktop: share/applications/org.strawbs.strawberry.desktop
|
desktop: usr/share/applications/org.strawbs.strawberry.desktop
|
||||||
environment:
|
environment:
|
||||||
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
|
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
|
||||||
plugs:
|
plugs:
|
||||||
- system-observe
|
- system-observe
|
||||||
- system-trace
|
- system-trace
|
||||||
|
- system-files
|
||||||
- home
|
- home
|
||||||
- dbus
|
- dbus
|
||||||
- mpris
|
|
||||||
- udisks2
|
- udisks2
|
||||||
- network
|
- network
|
||||||
- network-bind
|
- network-control
|
||||||
- desktop
|
- desktop
|
||||||
- desktop-legacy
|
- desktop-legacy
|
||||||
- x11
|
- x11
|
||||||
- wayland
|
- wayland
|
||||||
- alsa
|
- alsa
|
||||||
- pulseaudio
|
- pulseaudio
|
||||||
|
- mount-observe
|
||||||
|
- fuse-support
|
||||||
- removable-media
|
- removable-media
|
||||||
- optical-drive
|
- optical-drive
|
||||||
- raw-usb
|
- raw-usb
|
||||||
- media-hub
|
- media-hub
|
||||||
- screen-inhibit-control
|
- screen-inhibit-control
|
||||||
- unity7
|
- unity7
|
||||||
|
slots:
|
||||||
|
- mpris
|
||||||
|
- network-bind
|
||||||
|
Loading…
x
Reference in New Issue
Block a user