SpectreOS-old/aurinstall.sh

23 lines
336 B
Bash
Raw Normal View History

2018-04-25 11:59:54 +02:00
#!/bin/bash
set -ex
url="$1"
url1=${url%.*}
url2=${url1#*//}
packagename=${url2#*/}
cd
pwd
if [ -d ${packagename} ];then
echo "Bereits vorhanden!!!"
cd ${packagename}
2018-06-02 00:39:10 +02:00
git reset --hard
2018-04-25 11:59:54 +02:00
git pull
else
git clone ${url}
cd ${packagename}
fi
makepkg -si --skipchecksums --skippgpcheck --nocheck --noconfirm --install --needed