Skip to content

Commit fb5281b

Browse files
committed
add intel media driver and arch iterations
1 parent 1308c3f commit fb5281b

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

p3/libs/linuxtoys.lib

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,7 @@ _lang_ () {
123123
}
124124

125125
# system detection
126-
is_arch_cachy () {
127-
if [ "$ID" == "arch" ] || [ "$ID" == "cachyos" ] || [[ "$ID_LIKE" =~ "arch" ]] || [[ "$ID_LIKE" =~ "archlinux" ]]; then
128-
return 0
129-
else
130-
return 1
131-
fi
132-
}
133-
is_arch_nocachy () {
126+
is_arch () {
134127
if [[ ("$ID" == "arch" || "$ID_LIKE" =~ "arch" || "$ID_LIKE" =~ "archlinux") && "$ID" != "cachyos" ]]; then
135128
return 0
136129
else

p3/scripts/game/gsr-intel.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,26 @@ source "$SCRIPT_DIR/libs/lang/${langfile}.lib"
1616
sudo_rq
1717
if is_fedora; then
1818
sudo dnf copr enable brycensranch/gpu-screen-recorder-git
19-
_packages=(gpu-screen-recorder-ui)
19+
_packages=(gpu-screen-recorder-ui libva-intel-media-driver)
2020
elif is_ostree; then
2121
wget "https://copr.fedorainfracloud.org/coprs/brycensranch/gpu-screen-recorder-git/repo/fedora-$(rpm -E %fedora)/brycensranch-gpu-screen-recorder-git-fedora-$(rpm -E %fedora).repo"
2222
sudo install -o 0 -g 0 "brycensranch-gpu-screen-recorder-git-fedora-$(rpm -E %fedora).repo" "/etc/yum.repos.d/brycensranch-gpu-screen-recorder-git-fedora-$(rpm -E %fedora).repo"
2323
rm "brycensranch-gpu-screen-recorder-git-fedora-$(rpm -E %fedora).repo"
24-
_packages=(gpu-screen-recorder-ui)
24+
_packages=(gpu-screen-recorder-ui libva-intel-media-driver)
2525
elif is_suse; then
26-
_packages=(gpu-screen-recorder)
26+
_packages=(gpu-screen-recorder intel-media-driver)
2727
elif is_debian || is_ubuntu; then
2828
sudo bash -c "$(wget -q https://pacstall.dev/q/install -O -)"
2929
pacstall -I gpu-screen-recorder
30-
exit 0
30+
_packages=(intel-media-driver)
31+
elif is_arch || is_cachy; then
32+
git clone https://aur.archlinux.org/gpu-screen-recorder.git
33+
cd gpu-screen-recorder || exit 1
34+
makepkg -d
35+
sudo pacman -U --noconfirm gpu-screen-recorder-*.tar.zst
36+
cd ..
37+
rm -rf gpu-screen-recorder
38+
_packages=(intel-media-driver)
3139
fi
3240
_install_
3341
zeninf "$msg018"

p3/scripts/utils/obs-intel.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ obs_pipe () {
2727
sleep 1
2828
sudo_rq
2929
_packages=(obs-studio wireplumber)
30+
if is_fedora || is_ostree; then
31+
_packages+=(libva-intel-media-driver)
32+
elif is_suse || is_debian || is_ubuntu || is_arch || is_cachy; then
33+
_packages+=(intel-media-driver)
34+
fi
3035
_install_
3136
sleep 1
3237
obs_pipe

0 commit comments

Comments
 (0)