Refactor libcamera-git installer

This commit is contained in:
Manuel Thalmann 2023-04-06 13:41:29 +02:00
parent 73aab981f9
commit 81f0ccc2f8

View file

@ -1,16 +1,19 @@
#!/bin/bash
contextRoot="$(mktemp -d)";
git clone https://aur.archlinux.org/libcamera-git.git "$contextRoot";
packageName="libcamera-git";
pushd "$contextRoot" > /dev/null;
yay -G "$packageName";
cd *;
yay --noconfirm -S "$packageName" --asdeps;
sed -i \
-e "s/^\(provides=(.*\)\()\)/\1 \"libcamera-base.so\" \"libcamera.so\"\2/" \
-e "s/^\(conflicts=(.*\)\()\)/\1 \"libcamera-ipa\"\2/" \
PKGBUILD;
makepkg --noconfirm;
yay --noconfirm -U ./*.zst;
yes | makepkg -si;
popd > /dev/null;