37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
|
#!/bin/bash -ex
|
||
|
|
||
|
URI="http://download.opensuse.org/repositories/home:/Asukero/openSUSE_Tumbleweed/x86_64/alien-8.88-4.27.x86_64.rpm"
|
||
|
cd ~/ || exit 1
|
||
|
mkdir parsec_tmp
|
||
|
cd parsec_tmp || exit 1
|
||
|
|
||
|
grep -q 'opensuse' /etc/os-release
|
||
|
isopensuse=$?
|
||
|
if [ $isopensuse -eq 0 ]; then
|
||
|
sudo zypper -n in debhelper
|
||
|
wget "$URI"
|
||
|
alien_file=$(ls alien*)
|
||
|
yes | sudo rpm -i --force "${alien_file}"
|
||
|
else
|
||
|
sudo dnf -y install alien rpmrebuild
|
||
|
fi
|
||
|
|
||
|
wget https://s3.amazonaws.com/parsec-build/package/parsec-linux.deb
|
||
|
sudo alien -r parsec-linux.deb
|
||
|
parsec_file=$(ls parsec*.rpm)
|
||
|
|
||
|
if [ $isopensuse -eq 0 ]; then
|
||
|
yes | sudo rpm -i --force "${parsec_file}"
|
||
|
else
|
||
|
arch=$(uname -m)
|
||
|
rpmrebuild -p --change-spec-whole='sed "/\"\/\"\|\"\/usr\"\|\"\/usr\/bin\"/d"' --directory=. "${parsec_file}"
|
||
|
sudo dnf -y install "${arch}"/"${parsec_file}"
|
||
|
echo "Note: run 'sudo dnf remove alien rpmrebuild' if you don't want to keep those packages after install."
|
||
|
fi
|
||
|
|
||
|
cd ../ || exit 1
|
||
|
rm -rf parsec_tmp
|
||
|
echo "Now use parsecd in the terminal to start Parsec."
|
||
|
echo "If you want to use hardware decoding on an integrated Intel GPU, please run the following command:"
|
||
|
echo "sudo dnf install libva intel-vaapi-driver"
|
||
|
echo "Enjoy Gaming!"
|