Add a script for installing libcamera-git

This commit is contained in:
Manuel Thalmann 2023-04-05 10:21:12 +02:00
parent f3a9e365f5
commit cb6bde21a4
2 changed files with 19 additions and 0 deletions

View 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";

View file

@ -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;