2018-04-25 11:59:54 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-06-12 00:03:18 +02:00
|
|
|
set -x
|
2018-04-25 11:59:54 +02:00
|
|
|
|
|
|
|
url="$1"
|
|
|
|
url1=${url%.*}
|
|
|
|
url2=${url1#*//}
|
|
|
|
packagename=${url2#*/}
|
|
|
|
|
2018-08-13 15:02:34 +02:00
|
|
|
function aurinstaller() {
|
|
|
|
if git clone ${url}; then
|
|
|
|
echo "git erfolgreich runtergeladen!!!"
|
|
|
|
else
|
|
|
|
echo "verändere URL zum erfolgreichen herunterladen!!!"
|
|
|
|
git clone "https://aur.archlinux.org/${url}.git"
|
|
|
|
fi
|
|
|
|
cd ${packagename}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-04-25 11:59:54 +02:00
|
|
|
cd
|
|
|
|
pwd
|
|
|
|
if [ -d ${packagename} ];then
|
2018-08-13 15:02:34 +02:00
|
|
|
echo "Bereits vorhanden!!!"
|
|
|
|
cd ${packagename}
|
|
|
|
git reset --hard
|
|
|
|
if ! git pull; then
|
|
|
|
cd
|
|
|
|
pwd
|
|
|
|
rm -Rv ${packagename}
|
|
|
|
aurinstaller
|
|
|
|
fi
|
2018-04-25 11:59:54 +02:00
|
|
|
else
|
2018-08-13 15:02:34 +02:00
|
|
|
aurinstaller
|
2018-04-25 11:59:54 +02:00
|
|
|
fi
|
|
|
|
makepkg -si --skipchecksums --skippgpcheck --nocheck --noconfirm --install --needed
|
|
|
|
|