diff --git a/scripts/Arch/Devies/Surface/camera.sh b/scripts/Arch/Devies/Surface/camera.sh index d3fe5b9c..305160f7 100755 --- a/scripts/Arch/Devies/Surface/camera.sh +++ b/scripts/Arch/Devies/Surface/camera.sh @@ -1,16 +1,19 @@ #!/bin/bash contextRoot="$(mktemp -d)"; -git clone https://aur.archlinux.org/libcamera-git.git "$contextRoot"; +packageName="libcamera-git"; pushd "$contextRoot" > /dev/null; +yay -G "$packageName"; +cd *; +yay --noconfirm -S "$packageName" --asdeps; + sed -i \ -e "s/^\(provides=(.*\)\()\)/\1 \"libcamera-base.so\" \"libcamera.so\"\2/" \ -e "s/^\(conflicts=(.*\)\()\)/\1 \"libcamera-ipa\"\2/" \ PKGBUILD; -makepkg --noconfirm; -yay --noconfirm -U ./*.zst; +yes | makepkg -si; popd > /dev/null;