2017-02-02 22:14:46 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -e -u
|
2015-07-27 22:12:06 +02:00
|
|
|
|
|
|
|
PACKAGES=""
|
2017-02-02 22:14:46 +01:00
|
|
|
PACKAGES+=" asciidoc"
|
2018-09-26 08:26:51 +02:00
|
|
|
PACKAGES+=" asciidoctor" # Used by weechat for man pages.
|
2017-02-02 22:14:46 +01:00
|
|
|
PACKAGES+=" automake"
|
|
|
|
PACKAGES+=" bison"
|
|
|
|
PACKAGES+=" curl" # Used for fetching sources.
|
2017-05-19 23:54:36 +02:00
|
|
|
PACKAGES+=" ed" # Used by bc
|
2017-02-02 22:14:46 +01:00
|
|
|
PACKAGES+=" flex"
|
2018-09-12 07:07:49 +02:00
|
|
|
PACKAGES+=" g++-multilib" # Used by nodejs build for 32-bit arches.
|
2017-02-02 22:14:46 +01:00
|
|
|
PACKAGES+=" gettext" # Provides 'msgfmt' which the apt build uses.
|
2017-11-26 00:41:28 +01:00
|
|
|
PACKAGES+=" g++"
|
2017-02-02 22:14:46 +01:00
|
|
|
PACKAGES+=" git" # Used by the neovim build.
|
2017-07-26 14:21:12 +02:00
|
|
|
PACKAGES+=" gperf" # Used by the fontconfig build.
|
2017-02-02 22:14:46 +01:00
|
|
|
PACKAGES+=" help2man"
|
|
|
|
PACKAGES+=" intltool" # Used by qalc build.
|
2019-07-13 16:08:57 +02:00
|
|
|
PACKAGES+=" libdbus-1-dev" # Used by dbus-glib build.
|
2017-02-02 22:14:46 +01:00
|
|
|
PACKAGES+=" libglib2.0-dev" # Provides 'glib-genmarshal' which the glib build uses.
|
|
|
|
PACKAGES+=" libtool-bin"
|
2017-05-09 17:00:42 +02:00
|
|
|
PACKAGES+=" libncurses5-dev" # Used by mariadb for host build part.
|
2017-02-02 22:14:46 +01:00
|
|
|
PACKAGES+=" lzip"
|
2018-10-21 21:16:53 +02:00
|
|
|
PACKAGES+=" python3.7"
|
2017-02-02 22:14:46 +01:00
|
|
|
PACKAGES+=" tar"
|
|
|
|
PACKAGES+=" unzip"
|
|
|
|
PACKAGES+=" m4"
|
|
|
|
PACKAGES+=" pkg-config"
|
2017-04-20 09:00:02 +02:00
|
|
|
PACKAGES+=" python3-docutils" # For rst2man, used by mpv.
|
|
|
|
PACKAGES+=" python3-setuptools" # Needed by at least asciinema.
|
2017-07-26 16:13:45 +02:00
|
|
|
PACKAGES+=" python3-sphinx" # Needed by notmuch man page generation.
|
2017-11-26 00:41:28 +01:00
|
|
|
PACKAGES+=" ruby" # Needed to build ruby.
|
2017-02-02 22:14:46 +01:00
|
|
|
PACKAGES+=" scons"
|
|
|
|
PACKAGES+=" texinfo"
|
|
|
|
PACKAGES+=" xmlto"
|
2017-08-11 13:25:55 +02:00
|
|
|
PACKAGES+=" libexpat1-dev" # Needed by ghostscript
|
|
|
|
PACKAGES+=" libjpeg-dev" # Needed by ghostscript
|
2017-08-31 20:16:35 +02:00
|
|
|
PACKAGES+=" gawk" # Needed by apr-util
|
2018-10-30 16:19:19 +01:00
|
|
|
PACKAGES+=" libssl-dev" # Needed to build Rust
|
2019-01-26 15:43:14 +01:00
|
|
|
PACKAGES+=" gnupg" # Needed to verify downloaded .debs
|
2019-03-04 22:08:56 +01:00
|
|
|
PACKAGES+=" jq" # Needed by bintray upload script.
|
2019-03-25 15:12:03 +01:00
|
|
|
PACKAGES+=" lua5.3" # Needed to build luarocks package.
|
2019-03-21 05:42:58 +01:00
|
|
|
PACKAGES+=" python3-recommonmark" # needed for llvm-8 documentation
|
2019-04-27 22:47:56 +02:00
|
|
|
PACKAGES+=" llvm-8-tools" # so we don't build llvm for build
|
2019-04-09 17:16:51 +02:00
|
|
|
PACKAGES+=" openssl" # Needed by swi-prolog
|
|
|
|
PACKAGES+=" libssl-dev:i386" # Needed by swi-prolog 32-bit
|
|
|
|
PACKAGES+=" zlib1g-dev:i386"
|
|
|
|
|
|
|
|
# Allow 32-bit packages.
|
|
|
|
sudo dpkg --add-architecture i386
|
|
|
|
sudo apt-get -yq update
|
2016-09-23 02:47:11 +02:00
|
|
|
|
2018-05-02 23:00:28 +02:00
|
|
|
sudo DEBIAN_FRONTEND=noninteractive \
|
|
|
|
apt-get install -yq --no-install-recommends $PACKAGES
|
2015-07-27 22:12:06 +02:00
|
|
|
|
2019-05-28 05:55:26 +02:00
|
|
|
# Find and assign UBUNTU_VERSION
|
|
|
|
if [[ `lsb_release -rs` == "19.04" ]]; then
|
|
|
|
UBUNTU_VERSION="19.04.2"
|
|
|
|
else
|
|
|
|
UBUNTU_VERSION="18.10.1"
|
|
|
|
fi
|
|
|
|
|
2019-04-27 22:47:56 +02:00
|
|
|
# Make openjdk 8 available:
|
2019-05-28 05:55:26 +02:00
|
|
|
curl -O http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk-headless_8u212-b03-0ubuntu1."$UBUNTU_VERSION"_amd64.deb
|
|
|
|
curl -O http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk_8u212-b03-0ubuntu1."$UBUNTU_VERSION"_amd64.deb
|
|
|
|
curl -O http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre_8u212-b03-0ubuntu1."$UBUNTU_VERSION"_amd64.deb
|
|
|
|
curl -O http://security.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u212-b03-0ubuntu1."$UBUNTU_VERSION"_amd64.deb
|
|
|
|
sudo dpkg -i openjdk-8-jre-headless_8u212-b03-0ubuntu1."$UBUNTU_VERSION"_amd64.deb openjdk-8-jre_8u212-b03-0ubuntu1."$UBUNTU_VERSION"_amd64.deb openjdk-8-jdk_8u212-b03-0ubuntu1."$UBUNTU_VERSION"_amd64.deb openjdk-8-jdk-headless_8u212-b03-0ubuntu1."$UBUNTU_VERSION"_amd64.deb || sudo apt install -f -y
|
|
|
|
rm openjdk-8-jre-headless_8u212-b03-0ubuntu1."$UBUNTU_VERSION"_amd64.deb openjdk-8-jre_8u212-b03-0ubuntu1."$UBUNTU_VERSION"_amd64.deb openjdk-8-jdk_8u212-b03-0ubuntu1."$UBUNTU_VERSION"_amd64.deb openjdk-8-jdk-headless_8u212-b03-0ubuntu1."$UBUNTU_VERSION"_amd64.deb
|
2019-04-27 22:47:56 +02:00
|
|
|
|
2015-07-27 22:12:06 +02:00
|
|
|
sudo mkdir -p /data/data/com.termux/files/usr
|
2019-02-12 09:41:30 +01:00
|
|
|
sudo chown -R $(whoami) /data
|