diff --git a/scripts/Arch/Devies/Surface/camera.sh b/scripts/Arch/Devies/Surface/camera.sh new file mode 100755 index 000000000..3949c036a --- /dev/null +++ b/scripts/Arch/Devies/Surface/camera.sh @@ -0,0 +1,17 @@ +#!/bin/bash +contextRoot="$(mktemp -d)"; +git clone https://aur.archlinux.org/libcamera-git.git "$contextRoot"; + +pushd "$contextRoot" > /dev/null; + +sed -i \ + -e "s/^\(provides=(.*\)\()\)/\1 \"libcamera-base.so\" \"libcamera.so\"\2/" \ + -e "s/^\(conflicts=(.*\)\()\)/\1 \"libcamera-ipa\"\2/" \ + PKGBUILD; + +makepkg --noconfirm; +yay -U ./*.zst; + +popd > /dev/null; + +rm -rf "$contextRoot"; diff --git a/scripts/Arch/Devies/Surface/install.sh b/scripts/Arch/Devies/Surface/install.sh index eebdf53fe..9f844c995 100755 --- a/scripts/Arch/Devies/Surface/install.sh +++ b/scripts/Arch/Devies/Surface/install.sh @@ -32,4 +32,6 @@ sudo systemctl enable bluetooth --now; sudo grub-mkconfig -o /boot/grub/grub.cfg; yay -Syu libwacom-surface; +. "./camera.sh"; + pushd > /dev/null;