674319af50ca04641545a12ca11274510ceceae0
[termux-packages] / scripts / setup-ubuntu.sh
1 #!/bin/bash
2 set -e -u
3
4 PACKAGES=""
5 PACKAGES+=" ant" # Used by apksigner.
6 PACKAGES+=" asciidoc"
7 PACKAGES+=" automake"
8 PACKAGES+=" bison"
9 PACKAGES+=" curl" # Used for fetching sources.
10 PACKAGES+=" ed" # Used by bc
11 PACKAGES+=" flex"
12 PACKAGES+=" gcc-multilib" # Used by pforth build for 32-bit arches.
13 PACKAGES+=" gettext" # Provides 'msgfmt' which the apt build uses.
14 PACKAGES+=" g++"
15 PACKAGES+=" git" # Used by the neovim build.
16 PACKAGES+=" gperf" # Used by the fontconfig build.
17 PACKAGES+=" help2man"
18 PACKAGES+=" intltool" # Used by qalc build.
19 PACKAGES+=" libglib2.0-dev" # Provides 'glib-genmarshal' which the glib build uses.
20 PACKAGES+=" libtool-bin"
21 PACKAGES+=" libncurses5-dev" # Used by mariadb for host build part.
22 PACKAGES+=" lzip"
23 PACKAGES+=" python3.6"
24 PACKAGES+=" tar"
25 PACKAGES+=" unzip"
26 PACKAGES+=" m4"
27 PACKAGES+=" openjdk-8-jdk-headless" # Used for android-sdk.
28 PACKAGES+=" pkg-config"
29 PACKAGES+=" python3-docutils" # For rst2man, used by mpv.
30 PACKAGES+=" python3-setuptools" # Needed by at least asciinema.
31 PACKAGES+=" python3-sphinx" # Needed by notmuch man page generation.
32 PACKAGES+=" ruby" # Needed to build ruby.
33 PACKAGES+=" scons"
34 PACKAGES+=" texinfo"
35 PACKAGES+=" texlive-binaries" # Needed by texlive build.
36 PACKAGES+=" xmlto"
37 PACKAGES+=" xutils-dev" # Provides 'makedepend' which the openssl build uses.
38 PACKAGES+=" libexpat1-dev" # Needed by ghostscript
39 PACKAGES+=" libjpeg-dev" # Needed by ghostscript
40
41 DEBIAN_FRONTEND=noninteractive sudo 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