Commit a5074b88 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm play sunshine: Use version from developer copr and fix boost name on p10 (eterbug #17913)

parent ed245541
#!/bin/sh #!/bin/sh
PKGNAME=sunshine PKGNAME=Sunshine
SUPPORTEDARCHES="x86_64" SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2" VERSION="$2"
DESCRIPTION="Self-hosted game stream host for Moonlight" DESCRIPTION="Self-hosted game stream host for Moonlight"
URL="https://app.lizardbyte.dev/Sunshine" URL="https://app.lizardbyte.dev/Sunshine"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
PKGURL=$(get_github_url "https://github.com/LizardByte/Sunshine/" "sunshine-fedora-.*-amd64.rpm") arch=$(epm print info -a)
BUILD_ID=$(eget --list https://copr.fedorainfracloud.org/coprs/lizardbyte/stable/package/Sunshine/ | grep -o 'build/[0-9]\+' | cut -d/ -f2 | sort -n | tail -n1)
PKGURL=$(eget --list --latest https://download.copr.fedorainfracloud.org/results/lizardbyte/stable/fedora-41-$arch/0$BUILD_ID-Sunshine/ Sunshine-*.rpm)
install_pkgurl install_pkgurl
......
...@@ -35,7 +35,8 @@ EOF ...@@ -35,7 +35,8 @@ EOF
epm assure patchelf epm assure patchelf
epm assure ldd glibc-utils epm assure ldd glibc-utils
BOOST_REPO_VERSION=$(LC_ALL=C epm info boost | grep -oP '^Version\s*:\s*\K[^\s]+' | sed 's/^[0-9]*://g' | cut -d '-' -f 1) BOOST_NAME=$(epm search boost | head -n1 | awk '{print $1}')
BOOST_REPO_VERSION=$(LC_ALL=C epm info $BOOST_NAME | grep -oP '^Version\s*:\s*\K[^\s]+' | sed 's/^[0-9]*://g' | cut -d '-' -f 1)
BOOST_FEDORA_VERSION=$(a='' ldd usr/bin/sunshine | grep -oP 'libboost_[^ ]+\.so\.\K[0-9]+\.[0-9]+\.[0-9]+' | sort -u) BOOST_FEDORA_VERSION=$(a='' ldd usr/bin/sunshine | grep -oP 'libboost_[^ ]+\.so\.\K[0-9]+\.[0-9]+\.[0-9]+' | sort -u)
BOOST_LIBS=$(a='' ldd usr/bin/sunshine | grep -oP 'libboost_[^ ]+\.so' | sort -u | sed 's/libboost_//; s/\.so//') BOOST_LIBS=$(a='' ldd usr/bin/sunshine | grep -oP 'libboost_[^ ]+\.so' | sort -u | sed 's/libboost_//; s/\.so//')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment