Skip to content

Commit

Permalink
Moonlight PC v5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
maxiberta committed Oct 18, 2023
1 parent e596a51 commit 410f2d9
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ 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
override-pull: |
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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 410f2d9

Please sign in to comment.