new packages

This commit is contained in:
user1 2023-05-04 11:17:27 +02:00
parent af41320281
commit e9495356c5
3 changed files with 28 additions and 10 deletions

View file

@ -643,6 +643,9 @@ aurinstaller ferdium-bin
# Clipboard Manager # Clipboard Manager
aurinstaller clipman aurinstaller clipman
# OBS-Backgroundremover
aurinstaller obs-backgroundremoval
# background temparature # background temparature
#aurinstaller wl-gammarelay-rs #aurinstaller wl-gammarelay-rs
#if [ "${archisoinstall}" == "y" ]; then #if [ "${archisoinstall}" == "y" ]; then

View file

@ -12,6 +12,7 @@ libva-mesa-driver lib32-libva-mesa-driver mesa-vdpau lib32-mesa-vdpau libvdpau-v
openscad prusa-slicer slicer-udev openscad prusa-slicer slicer-udev
man man-pages man-pages-de man man-pages man-pages-de
nginx certbot-nginx nginx certbot-nginx
v4l2loopback-dkms obs-studio python opencv python-opencv clang flatbuffers python-flatbuffers
libheif libheif
at-spi2-core at-spi2-core
python-atspi python-atspi

View file

@ -15,7 +15,7 @@ mkdir -p /home/${user}/aur-builds
cd /home/${user}/aur-builds cd /home/${user}/aur-builds
pwd pwd
function aurinstaller() { function download_repo() {
if git clone ${url}; then if git clone ${url}; then
echo "git erfolgreich runtergeladen!!!" echo "git erfolgreich runtergeladen!!!"
else else
@ -29,15 +29,18 @@ function aurinstaller() {
} }
if [ -d ${packagename} ];then # Überprüfe ob es eine neue Version gibt
echo "Bereits vorhanden!!!" function checkversion() {
cd ${packagename} installed_version=$(LC_ALL=C pacman -Qi ${packagename} | awk '/^Version/{print $3}' | awk -F- '{ print $1 }')
#git reset --hard new_version=$(awk --field-separator='=' '/^pkgver/{print $2}' PKGBUILD | head -n1 | sed -e "s/'//g" -e "s/\"//g")
git clean -fdx # Überprüfe ob eine Version bereits installiert ist
git pull if [ -n "$installed_version" ]; then
else if [ "$new_version" = "$installed_version" ]; then
aurinstaller echo "Es existiert zurzeit keine neuere Version"
exit 0
fi fi
fi
}
function aurinstallwithoutroot() { function aurinstallwithoutroot() {
makepkg -si --skipchecksums --skippgpcheck --nocheck --noconfirm --install --needed 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" 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 if ! [[ $EUID -ne 0 ]]; then
run=aurinstallwithroot run=aurinstallwithroot
else else