Kod: Zaznacz cały
NOTE: These instructions work for almost any distro EXCEPT for Ubuntu 12.04 64bit. If you are unlucky and have that painful OS, scroll a little down and follow the Ubuntu-specific guide :)
NOTE2: Follow this only if you don't want to use the above script, because the script covers all that is mentioned here and also makes two more scripts to run and optimize LoL threading to increase performance.
NOTE3: You have to patch WINE, to get League of Legends running with WINE. There are two necessary patches and at least 3 patches which are needed to get the Shop running.
NOTE4: This HowTo does not show you, how to install League of Legends. If you really want or have to install League of Legends from scratch, you can see the needed command for this here at this AppDB entry (scroll down).
1. Download the source code from WINE (latest tested working version was 1.5.3) and extract it (or just use git to get the source).
2. When the source is extracted, download this to patches and store them into the wine source folder:
http://uz.sns.it/~ranma42/iLoL/spectator-fix-v2/0001-ntdll-Improve-performace-of-heap-allocation-v2.patch
http://uz.sns.it/~ranma42/iLoL/spectator-fix-v2/0002-imm32-Avoid-deadlock-when-destroying-thread-data.patch
3. To get the shop running with WINE, there are 3 more patches required. Also, download them in store them into the WINE source folder:
http://bugs.winehq.org/attachment.cgi?id=39446
http://bugs.winehq.org/attachment.cgi?id=39447
http://bugs.winehq.org/attachment.cgi?id=39449
NOTE: the uz.sns.it site is down, so you will not be able to download the patches from there. Instead, download all 5 patches here: http://www.mediafire.com/?xtu26a6szgct46d
patches are renamed to make easier the patching. ergo, u don't have to write too much xD
You can use wget for easy downloading them: "wget http://bugs.winehq.org/attachment.cgi?id=39446 -O lol-store-1.patch" for the first patch "-O lol-store-2.patch" for the next one, and so on. With the mediafire file, you can't do this.
4. Now, we have to gonna patch the source code. Use
patch -p1 < PATCHFILE
for each patch which you have downloaded the steps before. For example
patch -p1 < 0001-ntdll-Improve-performace-of-heap-allocation-v2.patch
and so on ...
5. After that you have to use
./configure
Don't forget, that you have to install required libs to build WINE. Also you can use another prefix, for e.g.
./configure --prefix=/opt/winelol
to install your build of WINE later to another location than the default WINE from the repos.