Skip to content

Commit 797a555

Browse files
authored
Merge pull request #1 from StarbotDiscord/libopus
Add libopus to the build system
2 parents 667eb81 + f7c2ff9 commit 797a555

File tree

1 file changed

+63
-23
lines changed

1 file changed

+63
-23
lines changed

build.sh

Lines changed: 63 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,51 @@
1-
# Python 3.5
2-
# ├ XZ
3-
# │ ├ lbzip2
4-
# │ ├ libiconv
5-
# │ │ └ gperf
6-
# │ └ gettext
7-
# │ ├ expat
8-
# │ │ └ lbzip2 (installed before)
9-
# │ ├ libiconv (installed before)
10-
# │ └ ncurses
11-
# ├ zlib
12-
# │ └ XZ (see above)
13-
# ├ openssl
14-
# │ └ zlib (see above)
15-
# ├ bzip2
16-
# ├ gettext (installed before)
17-
# ├ libedit
18-
# │ └ ncurses (installed before)
19-
# ├ ncurses (installed before)
20-
# └ sqlite3
21-
# ├ libedit (installed before)
22-
# └ ncurses (installed before)
1+
# Starbot
2+
# ├ Python 3.5
3+
# │ ├ XZ
4+
# │ │ ├ lbzip2
5+
# │ │ ├ libiconv
6+
# │ │ │ └ gperf
7+
# │ │ └ gettext
8+
# │ │ ├ expat
9+
# │ │ │ └ lbzip2 (installed before)
10+
# │ │ ├ libiconv (installed before)
11+
# │ │ └ ncurses
12+
# │ ├ zlib
13+
# │ │ └ XZ (installed before)
14+
# │ │ ├ lbzip2 (installed before)
15+
# │ │ ├ libiconv (installed before)
16+
# │ │ │ └ gperf (installed before)
17+
# │ │ └ gettext (installed before)
18+
# │ │ ├ expat (installed before)
19+
# │ │ │ └ lbzip2 (installed before)
20+
# │ │ ├ libiconv (installed before)
21+
# │ │ └ ncurses (installed before)
22+
# │ ├ openssl
23+
# │ │ └ zlib (installed before)
24+
# │ │ └ XZ (installed before)
25+
# │ ├ bzip2
26+
# │ ├ gettext (installed before)
27+
# │ │ ├ expat (installed before)
28+
# │ │ │ └ lbzip2 (installed before)
29+
# │ │ ├ libiconv (installed before)
30+
# │ │ └ ncurses (installed before)
31+
# │ ├ libedit
32+
# │ │ └ ncurses (installed before)
33+
# │ ├ ncurses (installed before)
34+
# │ └ sqlite3
35+
# │ ├ libedit (installed before)
36+
# │ │ └ ncurses (installed before)
37+
# │ └ ncurses (installed before)
38+
# ├ libopus
39+
# │ └ pkgconfig
40+
# │ └ libiconv (installed before)
41+
# │ └ gperf (installed before)
42+
# └ Postresql
2343

2444

2545
rm -rf lbzip2* gperf* libiconv* expat* gettext* ncurses* xz* zlib* openssl* bzip2* libedit* sqlite* Python*
2646

2747
export INSTALLDIR=$HOME/Starbot.framework
48+
export PATH=$INSTALLDIR/bin:$PATH
2849

2950
set -e
3051

@@ -41,6 +62,15 @@ function downloadAndCompile {
4162
cd ..
4263
}
4364

65+
# _____ _ _ ____ _____
66+
# | __ \ | | | | |___ \ | ____|
67+
# | |__) _ _| |_| |__ ___ _ __ __) || |__
68+
# | ___| | | | __| '_ \ / _ \| '_ \ |__ < |___ \
69+
# | | | |_| | |_| | | | (_) | | | | ___) _ ___) |
70+
# |_| \__, |\__|_| |_|\___/|_| |_| |____(_|____/
71+
# __/ |
72+
# |___/
73+
4474
downloadAndCompile lbzip2-2.5 http://archive.lbzip2.org/lbzip2-2.5.tar.gz
4575
downloadAndCompile gperf-3.1 http://ftp.gnu.org/pub/gnu/gperf/gperf-3.1.tar.gz
4676
downloadAndCompile libiconv-1.15 https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz "--with-gperf=$INSTALLDIR"
@@ -68,4 +98,14 @@ downloadAndCompile sqlite-autoconf-3170000 http://www.sqlite.org/2017/sqlite-aut
6898
cp -r $INSTALLDIR/lib $HOME/lib
6999
downloadAndCompile Python-3.5.3 https://www.python.org/ftp/python/3.5.3/Python-3.5.3.tgz
70100
rm -rf $HOME/lib
71-
$INSTALLDIR/bin/pip3 install pluginbase psutil gitpython pyparsing
101+
$INSTALLDIR/bin/pip3 install pluginbase psutil gitpython pyparsing
102+
103+
# _ _ _ ____ _____ _ _ _____
104+
# | | (_| | / __ \| __ \| | | |/ ____|
105+
# | | _| |__ | | | | |__) | | | | (___
106+
# | | | | '_ \| | | | ___/| | | |\___ \
107+
# | |____| | |_) | |__| | | | |__| |____) |
108+
# |______|_|_.__/ \____/|_| \____/|_____/
109+
110+
downloadAndCompile pkg-config-0.29.1 https://pkg-config.freedesktop.org/releases/pkg-config-0.29.1.tar.gz "--with-iconv=$INSTALLDIR --with-internal-glib"
111+
downloadAndCompile opus-1.1.4 http://downloads.xiph.org/releases/opus/opus-1.1.4.tar.gz

0 commit comments

Comments
 (0)