Refactor libcamera-git
installer
This commit is contained in:
parent
73aab981f9
commit
81f0ccc2f8
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue