2022-08-07 20:26:40 -04:00
|
|
|
---
|
2022-07-29 09:45:26 -04:00
|
|
|
app-id: dev.lizardbyte.sunshine
|
2022-06-15 21:50:02 -04:00
|
|
|
runtime: org.freedesktop.Platform
|
|
|
|
runtime-version: "21.08"
|
|
|
|
sdk: org.freedesktop.Sdk
|
|
|
|
command: sunshine
|
|
|
|
separate-locales: false
|
|
|
|
finish-args:
|
2022-08-24 22:29:20 -04:00
|
|
|
- --device=all # access all devices
|
|
|
|
- --env=PULSE_PROP_media.category=Manager # allow sunshine to manage audio sinks
|
|
|
|
- --filesystem=home # need to save files in user's home directory
|
|
|
|
- --share=ipc # required for X11 shared memory extension
|
|
|
|
- --share=network # access network
|
|
|
|
- --socket=pulseaudio # play sounds using pulseaudio
|
|
|
|
- --socket=wayland # show windows using Wayland
|
|
|
|
- --socket=x11 # show windows using X11
|
|
|
|
- --system-talk-name=org.freedesktop.Avahi # talk to avahi on the system bus
|
|
|
|
- --talk-name=org.freedesktop.Flatpak # talk to flatpak on the session bus
|
2022-06-15 21:50:02 -04:00
|
|
|
|
|
|
|
cleanup:
|
|
|
|
- /include
|
|
|
|
- /lib/cmake
|
|
|
|
- /lib/pkgconfig
|
|
|
|
- /lib/*.la
|
|
|
|
- /lib/*.a
|
2022-08-23 20:08:14 -04:00
|
|
|
- /share/man
|
2022-06-15 21:50:02 -04:00
|
|
|
|
|
|
|
modules:
|
2022-07-05 19:27:14 -04:00
|
|
|
- name: cuda
|
|
|
|
disabled: false
|
|
|
|
buildsystem: simple
|
|
|
|
only-arches:
|
|
|
|
- x86_64
|
|
|
|
- aarch64
|
|
|
|
cleanup:
|
|
|
|
- '*'
|
|
|
|
build-commands:
|
|
|
|
- chmod u+x ./cuda.run
|
2022-08-07 20:26:40 -04:00
|
|
|
- ./cuda.run --silent --toolkit --toolkitpath=$FLATPAK_DEST/cuda --no-opengl-libs --no-man-page --no-drm --tmpdir=$FLATPAK_BUILDER_BUILDDIR # yamllint disable-line rule:line-length
|
2022-07-05 19:27:14 -04:00
|
|
|
- rm -r $FLATPAK_DEST/cuda/nsight-systems-2021.3.2
|
|
|
|
- rm ./cuda.run
|
|
|
|
sources:
|
|
|
|
- type: file
|
|
|
|
only-arches:
|
|
|
|
- x86_64
|
|
|
|
url: https://developer.download.nvidia.com/compute/cuda/11.4.2/local_installers/cuda_11.4.2_470.57.02_linux.run
|
|
|
|
sha256: bbd87ca0e913f837454a796367473513cddef555082e4d86ed9a38659cc81f0a
|
|
|
|
dest-filename: cuda.run
|
|
|
|
- type: file
|
|
|
|
only-arches:
|
|
|
|
- aarch64
|
2022-08-07 20:26:40 -04:00
|
|
|
url: https://developer.download.nvidia.com/compute/cuda/11.4.2/local_installers/cuda_11.4.2_470.57.02_linux_sbsa.run # yamllint disable-line rule:line-length
|
2022-07-05 19:27:14 -04:00
|
|
|
sha256: f2c4a52e06329606c8dfb7c5ea3f4cb4c0b28f9d3fdffeeb734fcc98daf580d8
|
|
|
|
dest-filename: cuda.run
|
2022-06-15 21:50:02 -04:00
|
|
|
|
|
|
|
- name: boost
|
2022-10-10 06:56:22 -04:00
|
|
|
disabled: false
|
2022-06-15 21:50:02 -04:00
|
|
|
buildsystem: simple
|
|
|
|
build-commands:
|
2022-10-10 06:56:22 -04:00
|
|
|
- cd tools/build && bison -y -d -o src/engine/jamgram.cpp src/engine/jamgram.y
|
|
|
|
- ./bootstrap.sh --prefix=$FLATPAK_DEST --with-libraries=system,thread,log || cat bootstrap.log
|
2022-08-07 20:26:40 -04:00
|
|
|
- ./b2 install variant=release link=static,shared runtime-link=shared cxxflags="$CXXFLAGS" linkflags="$LDFLAGS" -j $FLATPAK_BUILDER_N_JOBS # yamllint disable-line rule:line-length
|
2022-06-15 21:50:02 -04:00
|
|
|
sources:
|
|
|
|
- type: archive
|
2022-10-09 09:40:19 -04:00
|
|
|
url: http://archive.ubuntu.com/ubuntu/pool/main/b/boost1.74/boost1.74_1.74.0.orig.tar.xz
|
|
|
|
sha256: 2467be4af625b5ae4b3c93fc7af196a09eba39c11a7338cd9e8b356fa44d2f45
|
2022-06-15 21:50:02 -04:00
|
|
|
|
|
|
|
- name: ffmpeg
|
2022-10-10 06:56:22 -04:00
|
|
|
disabled: false
|
2022-06-15 21:50:02 -04:00
|
|
|
config-opts:
|
|
|
|
- --enable-gpl
|
|
|
|
- --disable-static
|
|
|
|
- --enable-shared
|
|
|
|
- --disable-doc
|
|
|
|
- --disable-programs
|
|
|
|
- --disable-decoders
|
|
|
|
- --enable-libfontconfig
|
|
|
|
- --enable-libfreetype
|
|
|
|
- --enable-libopus
|
|
|
|
- --enable-libvorbis
|
|
|
|
- --enable-libvpx
|
|
|
|
- --enable-libx264
|
|
|
|
- --enable-libx265
|
|
|
|
- --enable-nvenc
|
|
|
|
- --enable-encoder=h264_v4l2m2m
|
|
|
|
- --enable-encoder=hevc_v4l2m2m
|
|
|
|
# - --enable-nonfree
|
|
|
|
# - --enable-cuda-nvcc
|
|
|
|
# - --enable-libnpp
|
2022-07-05 19:27:14 -04:00
|
|
|
# - --extra-cflags=-I${FLATPAK_DEST}/cuda/include
|
|
|
|
# - --extra-ldflags=-L${FLATPAK_DEST}/cuda/lib64
|
|
|
|
# - --nvccflags="-gencode arch=compute_52,code=sm_52 -O2"
|
2022-06-15 21:50:02 -04:00
|
|
|
cleanup:
|
2022-08-23 20:08:14 -04:00
|
|
|
- /share
|
2022-06-15 21:50:02 -04:00
|
|
|
sources:
|
|
|
|
- type: archive
|
2022-08-05 20:47:21 -04:00
|
|
|
url: http://archive.ubuntu.com/ubuntu/pool/universe/f/ffmpeg/ffmpeg_4.4.2.orig.tar.xz
|
2022-06-15 21:50:02 -04:00
|
|
|
sha256: af419a7f88adbc56c758ab19b4c708afbcae15ef09606b82b855291f6a6faa93
|
|
|
|
modules:
|
|
|
|
- name: x264
|
|
|
|
config-opts:
|
|
|
|
- --disable-cli
|
|
|
|
- --enable-shared
|
|
|
|
sources:
|
|
|
|
- type: archive
|
2022-10-09 09:40:19 -04:00
|
|
|
url: http://archive.ubuntu.com/ubuntu/pool/universe/x/x264/x264_0.163.3060+git5db6aa6.orig.tar.gz
|
|
|
|
sha256: 0c7a5585f1b160c91eab8114d8493e65d08d2dfdc5b5d6ae46bbe5523469df9d
|
2022-10-10 06:56:22 -04:00
|
|
|
|
2022-06-15 21:50:02 -04:00
|
|
|
- name: x265
|
|
|
|
buildsystem: cmake-ninja
|
|
|
|
builddir: true
|
|
|
|
subdir: source
|
|
|
|
config-opts:
|
|
|
|
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
- -DENABLE_CLI=OFF
|
|
|
|
sources:
|
|
|
|
- type: archive
|
2022-10-09 09:40:19 -04:00
|
|
|
url: http://archive.ubuntu.com/ubuntu/pool/universe/x/x265/x265_3.5.orig.tar.gz
|
2022-06-15 21:50:02 -04:00
|
|
|
sha256: e70a3335cacacbba0b3a20ec6fecd6783932288ebc8163ad74bcc9606477cae8
|
2022-10-10 06:56:22 -04:00
|
|
|
|
2022-10-09 09:40:19 -04:00
|
|
|
- name: nv-codec-headers
|
2022-06-15 21:50:02 -04:00
|
|
|
no-autogen: true
|
|
|
|
make-install-args:
|
2022-07-05 19:27:14 -04:00
|
|
|
- PREFIX=${FLATPAK_DEST}
|
2022-06-15 21:50:02 -04:00
|
|
|
cleanup:
|
|
|
|
- '*'
|
|
|
|
sources:
|
|
|
|
- type: archive
|
2022-10-09 09:40:19 -04:00
|
|
|
url: http://archive.ubuntu.com/ubuntu/pool/universe/n/nv-codec-headers/nv-codec-headers_11.1.5.1.orig.tar.gz
|
2022-06-15 21:50:02 -04:00
|
|
|
sha256: d095fbd56aa93772471a323be0ebe65504a0f43f06c76a30b6d25da77b06ae9c
|
|
|
|
|
|
|
|
- name: avahi
|
2022-10-10 06:56:22 -04:00
|
|
|
disabled: false
|
2022-06-15 21:50:02 -04:00
|
|
|
cleanup:
|
|
|
|
- /bin
|
|
|
|
- /lib/avahi
|
2022-08-23 20:08:14 -04:00
|
|
|
- /share
|
2022-06-15 21:50:02 -04:00
|
|
|
config-opts:
|
|
|
|
- --with-distro=none
|
|
|
|
- --disable-gobject
|
|
|
|
- --disable-introspection
|
|
|
|
- --disable-qt3
|
|
|
|
- --disable-qt4
|
|
|
|
- --disable-qt5
|
|
|
|
- --disable-gtk
|
|
|
|
- --disable-core-docs
|
|
|
|
- --disable-manpages
|
|
|
|
- --disable-libdaemon
|
|
|
|
- --disable-python
|
|
|
|
- --disable-pygobject
|
|
|
|
- --disable-mono
|
|
|
|
- --disable-monodoc
|
|
|
|
- --disable-autoipd
|
|
|
|
- --disable-doxygen-doc
|
|
|
|
- --disable-doxygen-dot
|
|
|
|
- --disable-doxygen-xml
|
|
|
|
- --disable-doxygen-html
|
|
|
|
- --disable-manpages
|
|
|
|
- --disable-xmltoman
|
|
|
|
sources:
|
|
|
|
- type: archive
|
2022-10-09 09:40:19 -04:00
|
|
|
url: http://archive.ubuntu.com/ubuntu/pool/main/a/avahi/avahi_0.8.orig.tar.gz
|
2022-06-15 21:50:02 -04:00
|
|
|
sha256: 060309d7a333d38d951bc27598c677af1796934dbd98e1024e7ad8de798fedda
|
2022-10-10 06:56:22 -04:00
|
|
|
|
2022-06-15 21:50:02 -04:00
|
|
|
modules:
|
|
|
|
- name: libevent
|
|
|
|
cleanup:
|
|
|
|
- /bin
|
|
|
|
sources:
|
|
|
|
- type: archive
|
2022-10-09 09:40:19 -04:00
|
|
|
url: http://archive.ubuntu.com/ubuntu/pool/main/libe/libevent/libevent_2.1.12-stable.orig.tar.gz
|
2022-06-15 21:50:02 -04:00
|
|
|
sha256: 92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb
|
|
|
|
|
|
|
|
- name: libevdev
|
|
|
|
buildsystem: meson
|
2022-10-10 06:56:22 -04:00
|
|
|
config-opts:
|
|
|
|
- -Ddocumentation=disabled
|
2022-06-15 21:50:02 -04:00
|
|
|
cleanup:
|
|
|
|
- /bin
|
|
|
|
sources:
|
|
|
|
- type: archive
|
2022-10-09 09:40:19 -04:00
|
|
|
url: http://archive.ubuntu.com/ubuntu/pool/main/libe/libevdev/libevdev_1.12.1+dfsg.orig.tar.xz
|
|
|
|
sha256: a9aadd9c1ac64e47ca88776555ea6d0030d678b518f593082a13354e0d8016db
|
2022-10-10 06:56:22 -04:00
|
|
|
|
2022-06-15 21:50:02 -04:00
|
|
|
modules:
|
|
|
|
- name: libcheck
|
|
|
|
buildsystem: cmake
|
|
|
|
cleanup:
|
|
|
|
- /bin
|
|
|
|
sources:
|
|
|
|
- type: archive
|
2022-10-09 09:40:19 -04:00
|
|
|
url: http://archive.ubuntu.com/ubuntu/pool/universe/c/check/check_0.15.2.orig.tar.gz
|
|
|
|
sha256: 8451b68ac5d6f3157b24f22eceff575bcf566264f6d78f3852f89d4e08cf42e1
|
2022-06-15 21:50:02 -04:00
|
|
|
|
|
|
|
- name: sunshine
|
|
|
|
buildsystem: cmake
|
|
|
|
no-make-install: false
|
2022-06-17 16:30:59 -04:00
|
|
|
builddir: true
|
2022-06-15 21:50:02 -04:00
|
|
|
build-options:
|
2022-06-17 16:30:59 -04:00
|
|
|
cxxflags: -I${C_INCLUDE_PATH}/libevdev-1.0
|
2022-06-15 21:50:02 -04:00
|
|
|
config-opts:
|
|
|
|
- -DCMAKE_BUILD_TYPE=Release
|
2022-07-05 19:27:14 -04:00
|
|
|
- -DCMAKE_INSTALL_PREFIX=/app
|
|
|
|
- -DCMAKE_CUDA_COMPILER=/app/cuda/bin/nvcc
|
2022-08-12 19:26:17 -04:00
|
|
|
- -DSUNSHINE_ASSETS_DIR=share/sunshine
|
2022-06-15 21:50:02 -04:00
|
|
|
- -DSUNSHINE_EXECUTABLE_PATH=/app/bin/sunshine
|
|
|
|
- -DSUNSHINE_ENABLE_WAYLAND=ON
|
|
|
|
- -DSUNSHINE_ENABLE_X11=ON
|
|
|
|
- -DSUNSHINE_ENABLE_DRM=ON
|
|
|
|
- -DSUNSHINE_ENABLE_CUDA=ON
|
2022-08-23 20:08:14 -04:00
|
|
|
- -DSUNSHINE_CONFIGURE_FLATPAK=ON
|
2022-06-15 21:50:02 -04:00
|
|
|
sources:
|
|
|
|
- type: git
|
2022-08-07 20:26:40 -04:00
|
|
|
url: '@GITHUB_CLONE_URL@'
|
|
|
|
branch: '@GITHUB_BRANCH@'
|
|
|
|
commit: '@GITHUB_COMMIT@'
|