SpectreOS-old/aurinstall.sh
simono41 0718040c64 fix
2018-06-02 00:34:10 +02:00

27 lines
411 B
Bash
Executable file

#!/bin/bash
set -ex
url="$1"
url1=${url%.*}
url2=${url1#*//}
packagename=${url2#*/}
cd
pwd
if [ -d ${packagename} ];then
echo "Bereits vorhanden!!!"
cd ${packagename}
if [ -f .SRCINFO ];then
rm .SRCINFO
fi
if [ -f PKGBUILD ];then
rm PKGBUILD
fi
git pull
else
git clone ${url}
cd ${packagename}
fi
makepkg -si --skipchecksums --skippgpcheck --nocheck --noconfirm --install --needed