diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 15addd8..5404b7a 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -33,7 +33,7 @@ parts: - CFLAGS: -O2 -g -pipe - CXXFLAGS: -O2 -g -pipe source: https://github.com/moonlight-stream/moonlight-qt.git - source-tag: v4.3.1 + source-tag: v5.0.0 parse-info: - app/deploy/linux/com.moonlight_stream.Moonlight.appdata.xml - usr/share/metainfo/com.moonlight_stream.Moonlight.appdata.xml @@ -41,7 +41,8 @@ parts: craftctl default craftctl set version=$(git describe --tags | sed "s/^v//") override-build: | - qmake PREFIX=/usr + # Need to set rpath manually for the linker to find libdav1d. + qmake PREFIX=/usr QMAKE_LFLAGS+=-Wl,-rpath-link,${SNAPCRAFT_STAGE}/usr/lib/${SNAPCRAFT_ARCH_TRIPLET} craftctl default make install INSTALL_ROOT="${CRAFT_PART_INSTALL}" after: @@ -105,6 +106,7 @@ parts: plugin: autotools source: https://git.ffmpeg.org/ffmpeg.git source-tag: n6.0 + source-depth: 1 autotools-configure-parameters: - --disable-all - --disable-static @@ -122,11 +124,14 @@ parts: - --enable-hwaccel=av1_vaapi - --enable-hwaccel=av1_vdpau - --enable-nvdec + - --enable-libdav1d + - --enable-decoder=libdav1d - --enable-pic - --enable-shared - --prefix=/usr build-environment: *build-environment after: + - dav1d - ffnvcodec - libva - sdl @@ -147,7 +152,7 @@ parts: libva: plugin: autotools source: https://github.com/intel/libva.git - source-tag: 2.18.0 + source-tag: 2.20.0 autotools-configure-parameters: - --prefix=/usr build-environment: *build-environment @@ -165,13 +170,12 @@ parts: sdl: plugin: autotools source: https://github.com/libsdl-org/SDL.git - source-commit: df6db90dd44984136d3724715fc2451d1b01fd23 + source-commit: 4aab2342e9aabc7e506952dbe5e021f3d3604929 autotools-configure-parameters: - --prefix=/usr - --disable-alsa - --disable-arts - --disable-esd - - --disable-libudev - --disable-nas - --disable-oss - --disable-rpath @@ -231,8 +235,8 @@ parts: libdecor: plugin: meson - source: https://gitlab.gnome.org/jadahl/libdecor.git - source-commit: e87dcfdaf83f332fa83b43c804fcf93c151ff0f5 + source: https://gitlab.freedesktop.org/libdecor/libdecor.git + source-tag: 0.2.0 meson-parameters: - -Ddemo=false - -Dprefix=/usr @@ -264,6 +268,16 @@ parts: - libxcb-shm0 - libxrender1 + dav1d: + plugin: meson + source: https://code.videolan.org/videolan/dav1d.git + source-tag: 1.3.0 + meson-parameters: + - -Denable_tools=false + - -Denable_tests=false + - -Dprefix=/usr + build-environment: *build-environment + desktop-qt5: source: https://github.com/ubuntu/snapcraft-desktop-helpers.git source-branch: master