forked from entropia/tip-toi-reveng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fetch-contrib.sh
executable file
·35 lines (27 loc) · 981 Bytes
/
fetch-contrib.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
set -e
wine-development cabal install --distdir=dist-win --bindir=.
(cd Audio/digits/; ./build.sh)
rev=$(git describe --tags)
zipfile=tttool-win32-$rev.zip
rm -f $zipfile
# Oggenc
OGGENC=oggenc2.87-1.3.5-generic.zip
mkdir -p contrib
test -e contrib/$OGGENC ||
wget http://www.rarewares.org/files/ogg/$OGGENC -O contrib/$OGGENC
unzip -d contrib contrib/$OGGENC oggenc2.exe
mv contrib/oggenc2.exe contrib/oggenc.exe
#SDL
SDL=SDL-1.2.15-win32.zip
SDLMIXER=SDL_mixer-1.2.12-win32.zip
test -e contrib/$SDL ||
wget http://libsdl.org/release/$SDL -O contrib/$SDL
unzip -o -d contrib contrib/$SDL
test -e contrib/$SDLMIXER ||
wget https://www.libsdl.org/projects/SDL_mixer/release/$SDLMIXER -O contrib/$SDLMIXER
unzip -o -d contrib contrib/$SDLMIXER
cp -v playmus/playmus.exe contrib/playmus.exe
# install espeak first in wine
cp ~/.wine/drive_c/Programme/eSpeak/command_line/espeak.exe contrib/
cp -r ~/.wine/drive_c/Programme/eSpeak/espeak-data/ contrib/