Add a script for installing libcamera-git
This commit is contained in:
parent
f3a9e365f5
commit
cb6bde21a4
2 changed files with 19 additions and 0 deletions
17
scripts/Arch/Devies/Surface/camera.sh
Executable file
17
scripts/Arch/Devies/Surface/camera.sh
Executable file
|
@ -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";
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue