PortValhalla/scripts/Arch/Devies/Surface/camera.sh

18 lines
392 B
Bash
Raw Normal View History

#!/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";