From: myothk <myothk@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: sunshine-0.23.1
Date: Sun, 30 Jun 2024 22:37:05 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-51053@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 672 bytes --]
There is a new pull request by myothk against master on the void-packages repository
https://github.com/myothk/void-packages sunshine
https://github.com/void-linux/void-packages/pull/51053
New package: sunshine-0.23.1
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
A patch file from https://github.com/void-linux/void-packages/pull/51053.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sunshine-51053.patch --]
[-- Type: text/x-diff, Size: 4000 bytes --]
From 1e9023338c61638dce1564164dbd9450ac254d47 Mon Sep 17 00:00:00 2001
From: myothk <myoothkyaw@gmail.com>
Date: Mon, 1 Jul 2024 02:56:00 +0630
Subject: [PATCH] New package: sunshine-0.23.1
---
.../patches/fix-systemd-requirement.patch | 42 +++++++++++++++++++
srcpkgs/sunshine/template | 28 +++++++++++++
2 files changed, 70 insertions(+)
create mode 100644 srcpkgs/sunshine/patches/fix-systemd-requirement.patch
create mode 100644 srcpkgs/sunshine/template
diff --git a/srcpkgs/sunshine/patches/fix-systemd-requirement.patch b/srcpkgs/sunshine/patches/fix-systemd-requirement.patch
new file mode 100644
index 00000000000000..b48db54889809c
--- /dev/null
+++ b/srcpkgs/sunshine/patches/fix-systemd-requirement.patch
@@ -0,0 +1,42 @@
+--- a/cmake/packaging/linux.cmake
++++ b/cmake/packaging/linux.cmake
+@@ -11,13 +11,10 @@ if(${SUNSHINE_BUILD_APPIMAGE} OR ${SUNSHINE_BUILD_FLATPAK})
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sunshine.service"
+ DESTINATION "${SUNSHINE_ASSETS_DIR}/systemd/user")
+ else()
+- find_package(Systemd)
+ find_package(Udev)
+
+ install(FILES "${SUNSHINE_SOURCE_ASSETS_DIR}/linux/misc/60-sunshine.rules"
+ DESTINATION "${UDEV_RULES_INSTALL_DIR}")
+- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sunshine.service"
+- DESTINATION "${SYSTEMD_USER_UNIT_INSTALL_DIR}")
+ endif()
+
+ # Post install
+
+--- a/cmake/dependencies/common.cmake
++++ b/cmake/dependencies/common.cmake
+@@ -39,10 +39,7 @@ elseif(APPLE)
+ elseif(UNIX)
+ set(FFMPEG_PLATFORM_LIBRARIES va va-drm va-x11 vdpau X11)
+ if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
+- list(APPEND FFMPEG_PLATFORM_LIBRARIES mfx)
+ set(FFMPEG_PREPARED_BINARIES "${CMAKE_SOURCE_DIR}/third-party/build-deps/ffmpeg/linux-x86_64")
+- set(CPACK_DEB_PLATFORM_PACKAGE_DEPENDS "libmfx1,")
+- set(CPACK_RPM_PLATFORM_PACKAGE_REQUIRES "intel-mediasdk >= 22.3.0,")
+ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
+ set(FFMPEG_PREPARED_BINARIES "${CMAKE_SOURCE_DIR}/third-party/build-deps/ffmpeg/linux-aarch64")
+ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "ppc64le" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "ppc64")
+
+--- a/packaging/linux/sunshine.desktop
++++ b/packaging/linux/sunshine.desktop
+@@ -1,7 +1,7 @@
+ [Desktop Entry]
+ Type=Application
+ Name=@PROJECT_NAME@
+-Exec=/usr/bin/env systemctl start --u sunshine
++Exec=sunshine
+ Version=1.0
+ Comment=@PROJECT_DESCRIPTION@
+ Icon=sunshine
diff --git a/srcpkgs/sunshine/template b/srcpkgs/sunshine/template
new file mode 100644
index 00000000000000..4e63c4c202bf3e
--- /dev/null
+++ b/srcpkgs/sunshine/template
@@ -0,0 +1,28 @@
+# Template file for 'sunshine'
+pkgname=sunshine
+version=0.23.1
+revision=1
+build_style=cmake
+configure_args="-Wno-dev -DBUILD_TESTS=OFF -DSUNSHINE_EXECUTABLE_PATH=/usr/bin/sunshine
+ -DSUNSHINE_ASSETS_DIR=/usr/share/sunshine"
+hostmakedepends="boost cmake git make nodejs pkg-config"
+makedepends="boost-devel doxygen graphviz libayatana-appindicator-devel libboost_filesystem
+ libboost_locale libboost_program_options libcap-devel libcurl-devel libdrm-devel libevdev-devel
+ libnuma-devel libnotify-devel libopusenc-devel libva-devel libvdpau-devel libX11-devel
+ libxcb-devel libXcursor-devel libXfixes-devel libXi-devel libXinerama-devel libXrandr-devel
+ libXtst-devel MesaLib-devel miniupnpc-devel nv-codec-headers opus-devel openssl-devel
+ pulseaudio-devel wayland-protocols"
+short_desc="Self-hosted GameStream host for Moonlight"
+maintainer="myothk <myoothkyaw@gmail.com>"
+license="GPL-3.0-only"
+homepage="https://app.lizardbyte.dev"
+_repo="https://github.com/LizardByte/Sunshine.git"
+do_fetch() {
+ [ -d "${pkgname}-${version}" ] && rm -rf "${pkgname}-${version}"
+ git clone ${_repo} --branch=v${version} --single-branch --recurse-submodules "${pkgname}-${version}"
+}
+pre_configure() {
+ export BRANCH=master
+ export BUILD_VERSION=${version}
+ export COMMIT=$(git rev-parse --short HEAD)
+}
next reply other threads:[~2024-06-30 20:37 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-30 20:37 myothk [this message]
2024-07-01 12:10 ` [PR REVIEW] " classabbyamp
2024-07-01 18:51 ` [PR PATCH] [Updated] " myothk
2024-07-01 19:00 ` myothk
2024-07-01 19:02 ` myothk
2024-07-01 19:05 ` myothk
2024-07-01 19:35 ` [PR PATCH] [Updated] " myothk
2024-07-01 19:36 ` myothk
2024-07-01 20:00 ` myothk
2024-07-01 20:05 ` myothk
2024-07-01 20:06 ` myothk
2024-07-01 20:07 ` myothk
2024-07-02 0:27 ` [PR REVIEW] " classabbyamp
2024-07-02 0:27 ` classabbyamp
2024-07-02 0:27 ` classabbyamp
2024-07-02 0:27 ` classabbyamp
2024-07-07 3:45 ` [PR PATCH] [Updated] " myothk
2024-07-07 3:48 ` myothk
2024-09-21 11:01 ` airpods69
2024-09-24 7:24 ` myothk
2024-09-24 7:25 ` myothk
2024-09-24 7:26 ` [PR REVIEW] " classabbyamp
2024-09-24 7:29 ` myothk
2024-09-24 7:33 ` myothk
2024-09-24 7:34 ` myothk
2024-09-27 3:11 ` [PR PATCH] [Updated] " myothk
2024-09-27 8:46 ` myothk
2024-09-29 18:58 ` [PR REVIEW] " classabbyamp
2024-09-29 18:58 ` classabbyamp
2024-10-11 5:59 ` [PR PATCH] [Updated] " myothk
2024-10-11 6:54 ` [PR REVIEW] " classabbyamp
2025-01-10 2:01 ` github-actions
2025-01-25 1:54 ` [PR PATCH] [Closed]: " github-actions
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-51053@inbox.vuxu.org \
--to=myothk@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).