termux-packages/scripts/setup-mac.sh

33 lines
827 B
Bash
Raw Normal View History

2016-06-11 01:17:00 +02:00
#!/bin/sh
set -e -u
2016-06-20 00:21:39 +02:00
# Remaining mac build issues:
# - perl does not build
# - strace does not build
# - dpkg calls ldconfig
2016-06-11 01:17:00 +02:00
command -v brew >/dev/null 2>&1 || {
echo >&2 "Install homebrew first: http://brew.sh"
exit 1
}
PACKAGES=""
PACKAGES="$PACKAGES bison"
PACKAGES="$PACKAGES cmake"
PACKAGES="$PACKAGES coreutils"
PACKAGES="$PACKAGES gawk"
PACKAGES="$PACKAGES gnu-sed --with-default-names" # For busybox build.
PACKAGES="$PACKAGES gnu-tar"
PACKAGES="$PACKAGES lzip"
PACKAGES="$PACKAGES pkgconfig"
PACKAGES="$PACKAGES python3"
brew install $PACKAGES
# bison is keg-only, but we need updated 'bison' in path:
brew link bison --force
2016-06-20 00:21:39 +02:00
# gettext is also key-only, but we need msgfmt for apt and glib:
brew link gettext --force
2016-06-11 01:17:00 +02:00
sudo mkdir -p /data/data/com.termux/files/usr
sudo chown -R `whoami` /data