diff --git a/arch-graphical-install-auto.sh b/arch-graphical-install-auto.sh index cbb1da9..9a60293 100755 --- a/arch-graphical-install-auto.sh +++ b/arch-graphical-install-auto.sh @@ -643,6 +643,9 @@ aurinstaller ferdium-bin # Clipboard Manager aurinstaller clipman +# OBS-Backgroundremover +aurinstaller obs-backgroundremoval + # background temparature #aurinstaller wl-gammarelay-rs #if [ "${archisoinstall}" == "y" ]; then diff --git a/packages.txt b/packages.txt index 754614a..acec1b1 100644 --- a/packages.txt +++ b/packages.txt @@ -12,6 +12,7 @@ libva-mesa-driver lib32-libva-mesa-driver mesa-vdpau lib32-mesa-vdpau libvdpau-v openscad prusa-slicer slicer-udev man man-pages man-pages-de nginx certbot-nginx +v4l2loopback-dkms obs-studio python opencv python-opencv clang flatbuffers python-flatbuffers libheif at-spi2-core python-atspi diff --git a/scripts/aurinstall.sh b/scripts/aurinstall.sh index 90e9233..f5e7730 100755 --- a/scripts/aurinstall.sh +++ b/scripts/aurinstall.sh @@ -15,7 +15,7 @@ mkdir -p /home/${user}/aur-builds cd /home/${user}/aur-builds pwd -function aurinstaller() { +function download_repo() { if git clone ${url}; then echo "git erfolgreich runtergeladen!!!" else @@ -29,15 +29,18 @@ function aurinstaller() { } -if [ -d ${packagename} ];then - echo "Bereits vorhanden!!!" - cd ${packagename} - #git reset --hard - git clean -fdx - git pull -else - aurinstaller -fi +# Überprüfe ob es eine neue Version gibt +function checkversion() { + installed_version=$(LC_ALL=C pacman -Qi ${packagename} | awk '/^Version/{print $3}' | awk -F- '{ print $1 }') + new_version=$(awk --field-separator='=' '/^pkgver/{print $2}' PKGBUILD | head -n1 | sed -e "s/'//g" -e "s/\"//g") + # Überprüfe ob eine Version bereits installiert ist + if [ -n "$installed_version" ]; then + if [ "$new_version" = "$installed_version" ]; then + echo "Es existiert zurzeit keine neuere Version" + exit 0 + fi + fi +} function aurinstallwithoutroot() { makepkg -si --skipchecksums --skippgpcheck --nocheck --noconfirm --install --needed @@ -47,6 +50,17 @@ function aurinstallwithroot() { su "${user}" -c "makepkg -si --skipchecksums --skippgpcheck --nocheck --noconfirm --install --needed" } +if [ -d ${packagename} ];then + echo "Bereits vorhanden!!!" + cd ${packagename} + git pull + checkversion + git clean -fdx + #git reset --hard +else + download_repo +fi + if ! [[ $EUID -ne 0 ]]; then run=aurinstallwithroot else