Skip to content

Commit 41a17b9

Browse files
authored
feat: Updated to core24 and updated mpv to 0.40.0 (#1349)
* feat: Updated to core24 * Updated mpv to 0.40.0
1 parent a92f1d7 commit 41a17b9

File tree

1 file changed

+30
-15
lines changed

1 file changed

+30
-15
lines changed

snap/snapcraft.yaml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,22 @@ source-code: https://github.com/ubuntu-flutter-community/musicpod
99
icon: snap/gui/musicpod.png
1010

1111
confinement: strict
12-
base: core22
12+
base: core24
1313
grade: stable
1414
license: GPL-3.0+
1515

16-
architectures:
17-
- build-on: amd64
18-
- build-on: arm64
16+
platforms:
17+
amd64:
18+
arm64:
19+
20+
layout:
21+
/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/alsa-lib:
22+
bind: $SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/alsa-lib
23+
/usr/share/alsa:
24+
bind: $SNAP/gnome-platform/usr/share/alsa
1925

2026
environment:
21-
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/blas:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/lapack:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/caca:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/vdpau:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/mfx
27+
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/caca:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/vdpau:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/mfx:$SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/blas:$SNAP/gnome-platform/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/lapack
2228

2329
apps:
2430
musicpod:
@@ -42,7 +48,7 @@ slots:
4248
parts:
4349
mpv:
4450
source: https://github.com/mpv-player/mpv.git
45-
source-tag: "v0.36.0"
51+
source-tag: "v0.40.0"
4652
plugin: meson
4753
meson-parameters:
4854
- --prefix=/usr
@@ -57,6 +63,7 @@ parts:
5763
- libvorbis-dev
5864
- libjpeg-turbo8-dev
5965
- libasound2-dev
66+
- libplacebo-dev
6067
prime:
6168
- usr/lib/*/libmpv*
6269

@@ -85,7 +92,7 @@ parts:
8592
source-type: git
8693
plugin: nil
8794
build-environment:
88-
- LD_LIBRARY_PATH: $SNAPCRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET:/snap/gnome-42-2204-sdk/current/lib/$CRAFT_ARCH_TRIPLET:/snap/gnome-42-2204-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET:/snap/gnome-42-2204-sdk/current/usr/lib:/snap/gnome-42-2204-sdk/current/usr/lib/vala-current:/snap/gnome-42-2204-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET/pulseaudio${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
95+
- LD_LIBRARY_PATH: $SNAPCRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:/snap/gnome-46-2404-sdk/current/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:/snap/gnome-46-2404-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:/snap/gnome-46-2404-sdk/current/usr/lib:/snap/gnome-46-2404-sdk/current/usr/lib/vala-current:/snap/gnome-46-2404-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/pulseaudio${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
8996
override-build: |
9097
set -eux
9198
curl https://sh.rustup.rs -sSf | sh -s -- -y
@@ -106,7 +113,7 @@ parts:
106113
- libbluray2
107114
- libbs2b0
108115
- libchromaprint1
109-
- libcodec2-1.0
116+
- libcodec2-1.2
110117
- libflite1
111118
- libgme0
112119
- libgsm1
@@ -139,12 +146,13 @@ parts:
139146
- libzimg2
140147
- libzmq5
141148
- libzvbi0
142-
- libavfilter7
143-
- libavformat58
144-
- libpostproc55
145-
- libswscale5
146-
- libsrt1.4-gnutls
149+
- libavfilter9
150+
- libavformat60
151+
- libpostproc57
152+
- libswscale7
153+
- libsrt1.5-gnutls
147154
- ocl-icd-libopencl1
155+
- libplacebo338
148156
- on amd64:
149157
- libmfx1
150158
prime:
@@ -207,15 +215,22 @@ parts:
207215
- usr/lib/*/libavcodec.so*
208216
- usr/lib/*/libavutil.so*
209217
- usr/lib/*/libswresample.so*
218+
- usr/lib/*/libplacebo.so*
219+
- usr/lib/*/libunibreak.so.*
220+
- usr/lib/*/libblas.so.*
221+
- usr/lib/*/liblapack.so.*
222+
- usr/lib/*/libfftw3.so.*
223+
- usr/lib/*/libsamplerate.so.*
224+
- usr/lib/*/libzix-0.so.*
210225

211226
# Find files provided by the base and platform snap and ensure they aren't
212227
# duplicated in this snap
213228
cleanup:
214229
after: [musicpod, deps]
215230
plugin: nil
216-
build-snaps: [core22, gtk-common-themes, gnome-42-2204]
231+
build-snaps: [core24, gtk-common-themes, gnome-46-2404, mesa-2404]
217232
override-prime: |
218233
set -eux
219-
for snap in "core22" "gtk-common-themes" "gnome-42-2204"; do
234+
for snap in "core24" "gtk-common-themes" "gnome-46-2404" "mesa-2404"; do
220235
cd "/snap/$snap/current" && find . -type f,l -name *.so.* -exec rm -f "$CRAFT_PRIME/{}" \;
221236
done

0 commit comments

Comments
 (0)