2023-04-05 08:21:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
contextRoot="$(mktemp -d)";
|
2023-04-06 11:41:29 +00:00
|
|
|
packageName="libcamera-git";
|
2023-04-05 08:21:12 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2023-04-05 08:21:12 +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;
|
2023-04-05 08:21:12 +00:00
|
|
|
|
|
|
|
popd > /dev/null;
|
|
|
|
|
|
|
|
rm -rf "$contextRoot";
|