2020-01-06 17:33:55 +01:00
|
|
|
#!/usr/bin/env bash
|
2017-07-01 00:39:28 +02:00
|
|
|
set -e -u
|
|
|
|
|
|
|
|
PACKAGES=""
|
2019-06-03 22:24:34 +02:00
|
|
|
PACKAGES+=" patch"
|
2017-07-01 00:39:28 +02:00
|
|
|
PACKAGES+=" asciidoc"
|
2019-06-03 22:24:34 +02:00
|
|
|
PACKAGES+=" asciidoctor" # Used by weechat for man pages.
|
2017-07-01 00:39:28 +02:00
|
|
|
PACKAGES+=" automake"
|
|
|
|
PACKAGES+=" bison"
|
|
|
|
PACKAGES+=" clang" # Used by golang, useful to have same compiler building.
|
|
|
|
PACKAGES+=" curl" # Used for fetching sources.
|
2019-06-03 22:24:34 +02:00
|
|
|
PACKAGES+=" ed" # Used by bc.
|
2017-07-01 00:39:28 +02:00
|
|
|
PACKAGES+=" flex"
|
2019-06-03 22:24:34 +02:00
|
|
|
PACKAGES+=" gcc" # Host C/C++ compiler.
|
|
|
|
PACKAGES+=" gettext" # Provides 'msgfmt'.
|
2017-07-01 00:39:28 +02:00
|
|
|
PACKAGES+=" git" # Used by the neovim build.
|
2019-06-03 22:24:34 +02:00
|
|
|
PACKAGES+=" gperf" # Used by the fontconfig build.
|
2017-07-01 00:39:28 +02:00
|
|
|
PACKAGES+=" help2man"
|
|
|
|
PACKAGES+=" intltool" # Used by qalc build.
|
|
|
|
PACKAGES+=" glib2" # Provides 'glib-genmarshal' which the glib build uses.
|
|
|
|
PACKAGES+=" libtool"
|
|
|
|
PACKAGES+=" lzip"
|
|
|
|
PACKAGES+=" python"
|
2019-06-03 22:24:34 +02:00
|
|
|
PACKAGES+=" python2"
|
2017-07-01 00:39:28 +02:00
|
|
|
PACKAGES+=" tar"
|
|
|
|
PACKAGES+=" unzip"
|
|
|
|
PACKAGES+=" m4"
|
2019-06-03 22:24:34 +02:00
|
|
|
PACKAGES+=" pkgconf"
|
2017-07-01 00:39:28 +02:00
|
|
|
PACKAGES+=" python-docutils" # For rst2man, used by mpv.
|
|
|
|
PACKAGES+=" python-setuptools" # Needed by at least asciinema.
|
2019-06-03 22:24:34 +02:00
|
|
|
PACKAGES+=" python-sphinx" # Needed by notmuch man page generation.
|
|
|
|
PACKAGES+=" ruby" # Needed to build ruby.
|
2017-07-01 00:39:28 +02:00
|
|
|
PACKAGES+=" scons"
|
|
|
|
PACKAGES+=" texinfo"
|
|
|
|
PACKAGES+=" xmlto"
|
2019-06-03 22:24:34 +02:00
|
|
|
PACKAGES+=" expat" # Needed by ghostscript.
|
|
|
|
PACKAGES+=" libjpeg-turbo" # Needed by ghostscript.
|
|
|
|
PACKAGES+=" gawk" # Needed by apr-util.
|
|
|
|
PACKAGES+=" openssl" # Needed to build rust.
|
|
|
|
PACKAGES+=" gnupg" # Needed to verify downloaded debs.
|
|
|
|
PACKAGES+=" lua" # Needed to build luarocks package.
|
|
|
|
PACKAGES+=" python-recommonmark" # Needed for LLVM-8 documentation.
|
|
|
|
PACKAGES+=" jre8-openjdk-headless"
|
2017-07-01 00:39:28 +02:00
|
|
|
|
2020-01-06 17:33:55 +01:00
|
|
|
# Do not require sudo if already running as root.
|
|
|
|
if [ "$(id -u)" = "0" ]; then
|
|
|
|
SUDO=""
|
|
|
|
else
|
|
|
|
SUDO="sudo"
|
|
|
|
fi
|
|
|
|
$SUDO pacman -Syq --noconfirm $PACKAGES
|
2020-10-30 20:37:18 +01:00
|
|
|
|
|
|
|
. $(dirname "$(realpath "$0")")/properties.sh
|
|
|
|
$SUDO mkdir -p $TERMUX_PREFIX
|
2020-01-06 17:33:55 +01:00
|
|
|
$SUDO chown -R $(whoami) /data
|
2017-07-01 00:39:28 +02:00
|
|
|
|
|
|
|
echo "Please also install ncurses5-compat-libs and makedepend packages from the AUR before continuing"
|