Skip to content
Snippets Groups Projects
Commit 968e9ecb authored by Diego Giovane Pasqualin's avatar Diego Giovane Pasqualin
Browse files

Fix verification for wine repository

parent a17eb152
No related branches found
No related tags found
No related merge requests found
......@@ -3,12 +3,16 @@
REQUIRED_PKGS="wine gcc-mingw-w64 p7zip-full autoconf"
pkgs_to_install=""
for pkg in $REQUIRED_PKGS; do
if ! dpkg --get-selections $pkg | grep -q -w install$; then
if ! dpkg --get-selections $pkg | grep -q -w 'install$'; then
pkgs_to_install="$pkgs_to_install $pkg"
fi
done
test -z $pkgs_to_install || sudo add-apt-repository ppa:ubuntu-wine/ppa || sudo update apt-get installsudo apt-get install $pkgs_to_install -y
if test -n "$pkgs_to_install"; then
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update update
sudo apt-get install $pkgs_to_install -y
fi
required_wine_pkgs="/tmp/nsis-2.45.exe /tmp/python-2.7.5.msi /tmp/py2exe.exe /tmp/pywin32.exe /tmp/wmi.exe"
......@@ -49,4 +53,4 @@ if ! test -f ~/.wine/drive_c/Program\ Files/NSIS/Unicode/Plugins/KillProcDLL.dll
wget "http://downloads.sourceforge.net/project/findkillprocuni/bin/KillProcDLL%20Unicode%20bin.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Ffindkillprocuni%2Ffiles%2Fbin%2F&ts=1395250878&use_mirror=ufpr" -O "/tmp/KillProcDLL.zip"
unzip -u -d "/tmp/KillProcDLL" "/tmp/KillProcDLL.zip"
cp "/tmp/KillProcDLL/KillProcDLL.dll" ~/.wine/drive_c/Program\ Files/NSIS/Unicode/Plugins/
fi
\ No newline at end of file
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment