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

21 lines
415 B
Bash
Raw Normal View History

#!/bin/bash
contextRoot="$(mktemp -d)";
2023-04-06 11:41:29 +00:00
packageName="libcamera-git";
pushd "$contextRoot" > /dev/null;
2023-04-06 11:41:29 +00:00
yay -G "$packageName";
cd *;
2023-04-07 00:09:49 +00:00
yay --noconfirm -S "$packageName" --asdeps || true;
2023-04-06 11:41:29 +00:00
sed -i \
-e "s/^\(provides=(.*\)\()\)/\1 \"libcamera-base.so\" \"libcamera.so\"\2/" \
-e "s/^\(conflicts=(.*\)\()\)/\1 \"libcamera-ipa\"\2/" \
PKGBUILD;
2023-04-06 11:41:29 +00:00
yes | makepkg -si;
popd > /dev/null;
rm -rf "$contextRoot";