scripts/setup-ubuntu.sh: Huh. We only have Python 3.5 here.
[termux-packages] / scripts / setup-ubuntu.sh
1 #!/bin/bash
2 set -e -u
3
4 PACKAGES=""
5 PACKAGES+=" asciidoc"
6 PACKAGES+=" automake"
7 PACKAGES+=" bison"
8 PACKAGES+=" curl" # Used for fetching sources.
9 PACKAGES+=" ed" # Used by bc
10 PACKAGES+=" flex"
11 PACKAGES+=" gcc-multilib" # Used by pforth build for 32-bit arches.
12 PACKAGES+=" gettext" # Provides 'msgfmt' which the apt build uses.
13 PACKAGES+=" g++"
14 PACKAGES+=" git" # Used by the neovim build.
15 PACKAGES+=" gperf" # Used by the fontconfig build.
16 PACKAGES+=" help2man"
17 PACKAGES+=" intltool" # Used by qalc build.
18 PACKAGES+=" libglib2.0-dev" # Provides 'glib-genmarshal' which the glib build uses.
19 PACKAGES+=" libtool-bin"
20 PACKAGES+=" libncurses5-dev" # Used by mariadb for host build part.
21 PACKAGES+=" lzip"
22 PACKAGES+=" python3.5"
23 PACKAGES+=" tar"
24 PACKAGES+=" unzip"
25 PACKAGES+=" m4"
26 PACKAGES+=" openjdk-8-jdk-headless" # Used for android-sdk.
27 PACKAGES+=" pkg-config"
28 PACKAGES+=" python3-docutils" # For rst2man, used by mpv.
29 PACKAGES+=" python3-setuptools" # Needed by at least asciinema.
30 PACKAGES+=" python3-sphinx" # Needed by notmuch man page generation.
31 PACKAGES+=" ruby" # Needed to build ruby.
32 PACKAGES+=" scons"
33 PACKAGES+=" texinfo"
34 PACKAGES+=" texlive-binaries" # Needed by texlive build.
35 PACKAGES+=" xmlto"
36 PACKAGES+=" xutils-dev" # Provides 'makedepend' which the openssl build uses.
37 PACKAGES+=" libexpat1-dev" # Needed by ghostscript
38 PACKAGES+=" libjpeg-dev" # Needed by ghostscript
39
40 sudo DEBIAN_FRONTEND=noninteractive \
41 apt-get install -yq --no-install-recommends $PACKAGES
42
43 sudo mkdir -p /data/data/com.termux/files/usr
44 sudo chown -R `whoami` /data