18 lines
392 B
Bash
18 lines
392 B
Bash
|
#!/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";
|