From ec84dfdab6fe47e4330965186037ae55ca569626 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 6 Apr 2023 13:41:29 +0200 Subject: [PATCH] Refactor `libcamera-git` installer --- scripts/Arch/Devies/Surface/camera.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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;