Package Details: sunshine 2025.122.141614-8

Git Clone URL: https://aur.archlinux.org/sunshine.git (read-only, click to copy)
Package Base: sunshine
Description: A self-hosted GameStream host for Moonlight
Upstream URL: https://github.com/LizardByte/Sunshine
Keywords: gaming moonlight streaming
Licenses: GPL-3.0-only
Submitter: hadogenes
Maintainer: dr460nf1r3 (xiota)
Last Packager: xiota
Votes: 59
Popularity: 2.17
First Submitted: 2021-04-26 11:33 (UTC)
Last Updated: 2025-06-15 19:55 (UTC)

Pinned Comments

xiota commented on 2025-02-19 18:03 (UTC) (edited on 2025-05-02 04:06 (UTC) by xiota)

Rebuilding AUR packages for library updates and mismatches is inevitable. This package uses sodeps to reduce breaks caused by library updates. When ready to rebuild, use a clean chroot or force upgrades with pacman -Syudd.

xiota commented on 2024-07-17 01:54 (UTC) (edited on 2025-02-19 18:06 (UTC) by xiota)

Switched default to cuda disabled (no nvenc) because cuda is a heavy package and Nvidia users are minority on Linux.

Nvidia users, install cuda manually before building or run as _build_cuda=t makepkg (method to pass variables to AUR helpers may vary).

xiota commented on 2024-07-09 23:41 (UTC) (edited on 2025-02-19 18:07 (UTC) by xiota)

For those concerned about "losing" upstream support for AUR, such support had already officially been discontinued long ago. The relevant comment from 2023-02-21 is pinned.

Before reporting issues to upstream, confirm them with git checkout or upstream binaries.

Package-specific issues should be reported here.

<deleted-account> commented on 2023-02-21 02:33 (UTC)

In order to simplify maintenance of Sunshine, we have decided to drop support of this AUR package, since we are now publishing a pre-compiled pkg.tar.zst package as well as the PKGBUILD file to our GitHub releases. If someone would like to take over the AUR it would be ideal if there is communication with us in our Discord. Please reach out if you're interested. Thanks!

Latest Comments

« First ‹ Previous 1 .. 8 9 10 11 12 13 14 15 16 17 18 .. 20 Next › Last »

imran-iq commented on 2024-03-06 01:10 (UTC)

The install command fails for me as I use doas instead of sudo, would it possible to use [ -x "$(command -v doas)" ] to check for and use doas instead of sudo?

patlefort commented on 2024-03-05 02:48 (UTC)

Hi, the list of dependencies in the .SRCINFO file doesn't match the PKGBUILD. Do you run makepkg --printsrcinfo to update it?

d-air1 commented on 2024-02-28 15:42 (UTC)

Anyone else having extremely laggy performance when running with the monitors turned off after the nvidia 550 driver update.

aimixsaka commented on 2024-02-06 04:58 (UTC)

@LizardByte, recently Arch Linux decided to use the SPDX license identifier in PKGBUILDs1, I think it would be better to follow https://wiki.archlinux.org/title/PKGBUILD#license to change the license name.


mfdeux commented on 2024-01-31 19:43 (UTC)

I had problems with encoding - so with framerate and general stability - until I manually installed libva-vdpau-driver on a AMD Navi gpu. Could you please add it to the list of recommended packages?

jelly commented on 2024-01-26 09:26 (UTC)

Please remove the setcap from .install, this does not belong in a post_install and this is a packaging violation. The setcap seems to be required only for KMS and this likely is a security issue.

Glorious7060 commented on 2023-12-10 15:08 (UTC) (edited on 2023-12-10 15:14 (UTC) by Glorious7060)

The package get stuck in cloning at ".cache/yay/sunshine/src/sunshine/third-party/ffmpeg-linux-powerpc64le" EDIT: Adding "git rm -f third-party/ffmpeg-linux-powerpc64le" and all fixed.

cpi commented on 2023-10-24 21:03 (UTC)

libappindicator-gtk3 has been removed from dependencies for 0.21.0, but it is still required. Without it, sunshine crash during startup.

detian commented on 2023-10-17 11:35 (UTC)

PKGBUILD suggestion:

pkgname='sunshine'
pkgver=0.21.0
pkgrel=1
pkgdesc="A self-hosted GameStream host for Moonlight."
arch=('x86_64' 'aarch64')
url=https://github.com/LizardByte/Sunshine
license=('GPL3')
install=sunshine.install
options=(!strip)

depends=('avahi'
         'boost-libs'
         'curl'
         'libayatana-appindicator'
         'libevdev'
         'libmfx'
         'libnotify'
         'libpulse'
         'libva'
         'libvdpau'
         'libx11'
         'libxcb'
         'libxfixes'
         'libxrandr'
         'libxtst'
         'numactl'
         'openssl'
         'opus'
         'udev')
makedepends=('boost'
             'cmake'
             'git'
             'make'
             'nodejs'
             'npm'
             'ninja')
optdepends=('cuda: NvFBC capture support'
            'libcap'
            'libdrm')

provides=('sunshine')
conflicts=('sunshine')

source=("$pkgname::git+https://github.com/LizardByte/Sunshine.git#tag=v${pkgver}")
sha256sums=('SKIP')

prepare() {
    cd "$pkgname"

    # Remove submodules that are not needed in this build.
    find . -type d \
        '(' -iname 'ffmpeg-*' -o -iname '*ViGEmClient' ')' \
        ! -iname "*linux-$CARCH" \
        -exec git rm -rf {} +

    git submodule update --recursive --init
}

build() {
    pushd "$pkgname"
    npm install
    # For not check nightly update
    export BRANCH=master
    export BUILD_VERSION=${pkgver}
    COMMIT="$(git rev-parse HEAD)"
    export COMMIT
    popd

    export CFLAGS="${CFLAGS/-Werror=format-security/}"
    export CXXFLAGS="${CXXFLAGS/-Werror=format-security/}"

    cmake -Wno-dev \
        -S "$pkgname" \
        -B build -G Ninja \
        -D CMAKE_BUILD_TYPE=Release \
        -D CMAKE_INSTALL_PREFIX=/usr \
        -D SUNSHINE_ASSETS_DIR="share/$pkgname" \
        -D SUNSHINE_EXECUTABLE_PATH=/usr/bin/$pkgname \
        -D SUNSHINE_ENABLE_WAYLAND=ON \
        -D SUNSHINE_ENABLE_X11=ON \
        -D SUNSHINE_ENABLE_DRM=ON \
        -D SUNSHINE_ENABLE_CUDA=ON

    ninja -C build
}

package() {
    DESTDIR="$pkgdir" ninja -C build install
}

<deleted-account> commented on 2023-10-16 17:01 (UTC)

@60fpshacks Do you think we don't know v0.21.0 was released? You can't seriously expect this package to updated in parallel to upstream...