blob: c637b4f5916d1443e1d9913d9370f279933e4445 (
plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
#!/bin/sh
set -e -x
case "$1" in
before_install)
sudo ln -s $(command -v python) /usr/local/bin/python
sudo service postgresql stop
sudo service mysql stop
sudo apt-get update -qq
curl -L http://ftpmirror.gnu.org/make/make-4.0.tar.bz2 | tar -xj
#curl http://nodejs.org/dist/node-latest.tar.gz | tar -xz
curl https://webp.googlecode.com/files/libwebp-0.4.0.tar.gz | tar -xz
curl -L http://downloads.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-0.1.3.tar.gz | tar -xz
curl http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz | tar -xz
curl http://webm.googlecode.com/files/libvpx-v1.3.0.tar.bz2 | tar -xj
curl http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 | tar -xj
curl -L http://downloads.sourceforge.net/project/apngasm/2.7/apngasm-2.7-src.zip -O
unzip apngasm-2.7-src.zip apngasm.c
rm apngasm-2.7-src.zip
curl http://dl.katawa-shoujo.com/gold_1.1/%5B4ls%5D_katawa_shoujo_1.1-%5Blinux-x86%5D%5BB5C707D5%5D.tar.bz2 | tar -xj --strip-components 2 --wildcards "Katawa Shoujo-linux-x86/game/script-a*.rpyc" "Katawa Shoujo-linux-x86/game/imachine.rpyc" "Katawa Shoujo-linux-x86/game/ui-strings*.rpyc" "Katawa Shoujo-linux-x86/game/data.rpa"
mv *.rpyc ast2json
npm config set tmp /tmp
;;
install)
MAKEOPTS="-s ${MAKEOPTS}"
sudo apt-get install --no-install-recommends -qq libtheora-dev libx264-dev nginx yasm
cd make-4.0
./configure --disable-dependency-tracking --quiet
make $MAKEOPTS >/dev/null
sudo make $MAKEOPTS install >/dev/null
cd ..
rm -rf make-4.0
cd libwebp-0.4.0
sed -i -e '/unset ac_cv_header_GL_glut_h/d' configure
ac_cv_header_gif_lib_h=no \
ac_cv_header_tiffio_h=no \
ac_cv_header_GL_glut_h=no \
./configure --disable-shared --disable-dependency-tracking --enable-libwebpmux --quiet
make $MAKEOPTS >/dev/null
sudo make $MAKEOPTS install >/dev/null
cd ..
rm -rf libwebp-0.4.0
#cd node-v*
#./configure --openssl-use-sys --shared-zlib
#make $MAKEOPTS >/dev/null
#sudo python tools/install.py install >/dev/null
#cd ..
#rm -rf node-v*
cd fdk-aac-0.1.3
./configure --disable-shared --disable-dependency-tracking --quiet
make $MAKEOPTS >/dev/null
sudo make $MAKEOPTS install >/dev/null
cd ..
rm -rf fdk-aac-0.1.3
cd opus-1.1
./configure --disable-shared --disable-extra-programs --disable-dependency-tracking --quiet
make $MAKEOPTS >/dev/null
sudo make $MAKEOPTS install >/dev/null
cd ..
rm -rf opus-1.1
cd libvpx-v1.3.0
./configure
make $MAKEOPTS >/dev/null
sudo make $MAKEOPTS install >/dev/null
cd ..
rm -rf libvpx-v1.3.0
cd ffmpeg
./configure --disable-everything --disable-logging --disable-programs --disable-runtime-cpudetect --enable-decoder=mpeg4 --enable-decoder=pcm_s16le --enable-decoder=vorbis --enable-decoder=rawvideo --enable-demuxer=matroska --enable-demuxer=ogg --enable-demuxer=wav --enable-demuxer=yuv4mpegpipe --enable-encoder=libfdk_aac --enable-encoder=libopus --enable-encoder=libtheora --enable-encoder=libvpx_vp8 --enable-encoder=libvpx_vp9 --enable-encoder=libx264 --enable-encoder=pcm_s16le --enable-encoder=rawvideo --enable-ffmpeg --enable-filter=aresample --enable-gpl --enable-hardcoded-tables --enable-libfdk_aac --enable-libopus --enable-libtheora --enable-libvpx --enable-libx264 --enable-muxer=ipod --enable-muxer=mp4 --enable-muxer=ogg --enable-muxer=wav --enable-muxer=webm --enable-muxer=yuv4mpegpipe --enable-nonfree --enable-protocol=file
make $MAKEOPTS >/dev/null
sudo make $MAKEOPTS install >/dev/null
cd ..
rm -rf ffmpeg
sed -e "29a#include <string.h>\r\n" apngasm.c | gcc -x c -o apngasm -Wall $CFLAGS - $(pkg-config --libs libpng --libs zlib)
sudo install -c -m755 apngasm /usr/local/bin
rm apngasm*
curl https://raw.github.com/Lattyware/unrpa/master/unrpa | python2 - -p www/dump -m data.rpa
rm data.rpa
;;
script)
make $MAKEOPTS
./nginx.sh
curl http://localhost:8080/
curl "http://localhost:8080/?warned=1"
;;
*)
exit 1
esac
|