Cleanup pacman cache and remove qt5 example folder after install

This commit is contained in:
gator96100 2019-04-28 22:26:45 +02:00
commit e5228b40ff

View file

@ -1,19 +1,29 @@
check_install () check_install () {
{
pacman -Q $1 > /dev/null pacman -Q $1 > /dev/null
if [ $? == 1 ]; then if [ $? == 1 ]; then
pacman --noconfirm --force -S $1 pacman --noconfirm --force -S $1
pacman --noconfirm --force -Scc
fi fi
} }
check_install_web () check_install_web () {
{
pacman -Q $1 | grep $2 > /dev/null pacman -Q $1 | grep $2 > /dev/null
if [ $? == 1 ]; then if [ $? == 1 ]; then
pacman --noconfirm --force -U $3 pacman --noconfirm --force -U $3
pacman --noconfirm --force -Scc
fi fi
} }
clean_qt5_86 () {
rm -rf /mingw32/share/qt5/examples
}
clean_qt5_64 () {
rm -rf /mingw64/share/qt5/examples
}
setup_proxspace () setup_proxspace ()
{ {
if [ "$MSYSTEM" == "MINGW64" ]; then if [ "$MSYSTEM" == "MINGW64" ]; then
@ -23,8 +33,8 @@ setup_proxspace ()
check_install git check_install git
check_install make check_install make
check_install pkg-config check_install pkg-config
check_install mingw-w64-x86_64-jansson
check_install mingw-w64-x86_64-qt5 check_install mingw-w64-x86_64-qt5
clean_qt5_64
fi fi
if [ "$MSYSTEM" == "MINGW32" ]; then if [ "$MSYSTEM" == "MINGW32" ]; then
@ -33,8 +43,8 @@ setup_proxspace ()
check_install git check_install git
check_install make check_install make
check_install pkg-config check_install pkg-config
check_install mingw-w64-i686-jansson check_install mingw-w64-i686-qt5
check_install mingw-w64-i686-qt5 clean_qt5_86
fi fi
} }