chore: sync AUR packages
This commit is contained in:
1 parent
60cb8f2dac
commit
499ab38afa
43 files changed
+483
-144
No files matched your search
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"source": "aur",
|
||||
"upstream_commit": "25d6084936ff14a3b2fdb8c151cda4e579803079"
|
||||
"upstream_commit": "bbd56b3001bd99b609eeac3f86ebcf67a32e3442"
|
||||
}
|
||||
+70
-14
@@ -2,15 +2,15 @@
|
||||
# Reference: https://wiki.archlinux.org/title/PKGBUILD
|
||||
|
||||
## options
|
||||
: "${_run_unit_tests:=false}" # if set to true; unit tests will be executed post build; useful in CI
|
||||
: "${_run_unit_tests:=false}" # if set to true; unit tests will be executed post build; useful in CI
|
||||
: "${_support_headless_testing:=false}"
|
||||
: "${_use_cuda:=detect}" # nvenc
|
||||
|
||||
: "${_commit:=86188d47a7463b0f73b35de18a628353adeaa20e}"
|
||||
: "${_commit:=14ffa6fdaa53f7b51512be2b3d24f3939695403c}"
|
||||
|
||||
pkgname='sunshine'
|
||||
pkgver=2025.924.154138
|
||||
pkgrel=3
|
||||
pkgver=2026.516.143833
|
||||
pkgrel=1
|
||||
pkgdesc="Self-hosted game stream host for Moonlight"
|
||||
arch=('x86_64' 'aarch64')
|
||||
url=https://app.lizardbyte.dev/Sunshine
|
||||
@@ -37,6 +37,7 @@ depends=(
|
||||
'libevdev'
|
||||
'libmfx'
|
||||
'libnotify'
|
||||
'libpipewire'
|
||||
'libpulse'
|
||||
'libva'
|
||||
'libx11'
|
||||
@@ -49,6 +50,7 @@ depends=(
|
||||
'openssl'
|
||||
'opus'
|
||||
'udev'
|
||||
'vulkan-icd-loader'
|
||||
'which'
|
||||
)
|
||||
|
||||
@@ -62,6 +64,13 @@ makedepends=(
|
||||
'make'
|
||||
'nodejs'
|
||||
'npm'
|
||||
'python-jinja' # required by the glad OpenGL/EGL loader generator
|
||||
'python-setuptools' # required for glad OpenGL/EGL loader generated, v2.0.0
|
||||
'shaderc'
|
||||
)
|
||||
|
||||
checkdepends=(
|
||||
'gcovr'
|
||||
)
|
||||
|
||||
optdepends=(
|
||||
@@ -111,7 +120,7 @@ prepare() {
|
||||
|
||||
build() {
|
||||
export BRANCH="master"
|
||||
export BUILD_VERSION="2025.924.154138"
|
||||
export BUILD_VERSION="2026.516.143833"
|
||||
export COMMIT="${_commit}"
|
||||
|
||||
export CC="gcc${_gcc_env_suffix}"
|
||||
@@ -129,7 +138,6 @@ build() {
|
||||
-D BUILD_DOCS=OFF
|
||||
-D BUILD_WERROR=ON
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D SUNSHINE_COMPILE_OPTIONS="-Wno-uninitialized"
|
||||
-D SUNSHINE_EXECUTABLE_PATH=/usr/bin/sunshine
|
||||
-D SUNSHINE_ASSETS_DIR="share/sunshine"
|
||||
-D SUNSHINE_PUBLISHER_NAME='LizardByte'
|
||||
@@ -144,10 +152,14 @@ build() {
|
||||
# therefore, set them manually to the expected values on Arch Linux
|
||||
if [ -z "${CUDA_PATH:-}" ] && pacman -Qi cuda &> /dev/null; then
|
||||
local _cuda_gcc_version
|
||||
_cuda_gcc_version="$(LC_ALL=C pacman -Si cuda | grep -Pom1 '^Depends On\s*:.*\bgcc\K[0-9]+\b')"
|
||||
_cuda_gcc_version="$(LC_ALL=C pacman -Si cuda | grep -Pom1 '^Depends On\s*:.*\bgcc\K[0-9]+\b' || true)"
|
||||
|
||||
export CUDA_PATH=/opt/cuda
|
||||
export NVCC_CCBIN="/usr/bin/g++-${_cuda_gcc_version}"
|
||||
if [ -n "$_cuda_gcc_version" ]; then
|
||||
export NVCC_CCBIN="/usr/bin/g++-${_cuda_gcc_version}"
|
||||
else
|
||||
export NVCC_CCBIN="/usr/bin/g++"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -162,23 +174,67 @@ build() {
|
||||
desktop-file-validate "build/dev.lizardbyte.app.Sunshine.desktop"
|
||||
desktop-file-validate "build/dev.lizardbyte.app.Sunshine.terminal.desktop"
|
||||
|
||||
make -C build
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${srcdir}/build"
|
||||
./sunshine --version
|
||||
|
||||
if [[ "${_run_unit_tests::1}" == "t" ]]; then
|
||||
export CC="gcc${_gcc_env_suffix}"
|
||||
export CXX="g++${_gcc_env_suffix}"
|
||||
|
||||
cd "${srcdir}/build/tests"
|
||||
./test_sunshine --gtest_color=yes
|
||||
./test_sunshine --gtest_color=yes --gtest_output=xml:test_results.xml
|
||||
|
||||
# Generate coverage report
|
||||
# Run gcovr from the build directory (where all .gcda/.gcno files are)
|
||||
# This matches the pattern used in ci-linux.yml
|
||||
cd "${srcdir}/build"
|
||||
|
||||
# Dynamically find the gcov executable from the selected compiler.
|
||||
# This ensures we use the same gcov version that produced the .gcno files.
|
||||
local gcov_path
|
||||
local gcc_lib_dir
|
||||
|
||||
gcc_lib_dir="$("$CC" -print-libgcc-file-name)"
|
||||
gcc_lib_dir="${gcc_lib_dir%/*}"
|
||||
gcov_path="${gcc_lib_dir}/gcov"
|
||||
|
||||
if [ ! -x "$gcov_path" ]; then
|
||||
gcov_path="$("$CC" -print-prog-name=gcov)"
|
||||
fi
|
||||
|
||||
if [ -n "$gcov_path" ] && command -v "$gcov_path" > /dev/null 2>&1; then
|
||||
gcov_path="$(command -v "$gcov_path")"
|
||||
else
|
||||
gcov_path="$(command -v "gcov${_gcc_env_suffix}" || command -v gcov || true)"
|
||||
fi
|
||||
|
||||
if [ -z "$gcov_path" ]; then
|
||||
echo "Unable to find gcov for ${CC}" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
echo "Using gcov at: $gcov_path"
|
||||
|
||||
# Use the actual relative path to the source directory
|
||||
# From ${srcdir}/build, the source is at ../${pkgname}/src
|
||||
gcovr --gcov-executable "$gcov_path" . -r "../${pkgname}/src" \
|
||||
--exclude-noncode-lines \
|
||||
--exclude-throw-branches \
|
||||
--exclude-unreachable-branches \
|
||||
--verbose \
|
||||
--xml-pretty \
|
||||
-o coverage.xml
|
||||
|
||||
# Post-process the coverage XML to strip the absolute path and show only 'src'
|
||||
sed -i "s|${srcdir}/${pkgname}/src|src|g" coverage.xml
|
||||
fi
|
||||
|
||||
cd "${srcdir}/build"
|
||||
./sunshine --version
|
||||
}
|
||||
|
||||
package() {
|
||||
export MAKEFLAGS="${MAKEFLAGS:--j$(nproc)}"
|
||||
make -C build install DESTDIR="$pkgdir"
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
do_setcap() {
|
||||
setcap cap_sys_admin+p $(readlink -f usr/bin/sunshine)
|
||||
setcap cap_sys_admin,cap_sys_nice+p $(readlink -f usr/bin/sunshine)
|
||||
}
|
||||
|
||||
do_udev_reload() {
|
||||
|
||||
Reference in new issue
Block a user