From 4e963c626f9c01e03bbd0ca4b44ab5a54d538075 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 27 Jul 2015 16:12:06 -0400 Subject: [PATCH] Extract out ubuntu-setup.sh --- build-package.sh | 12 ------------ ubuntu-setup.sh | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 12 deletions(-) create mode 100755 ubuntu-setup.sh diff --git a/build-package.sh b/build-package.sh index 8b251c14c..13f8650f0 100755 --- a/build-package.sh +++ b/build-package.sh @@ -1,17 +1,5 @@ #!/bin/bash -# Required setup for ubuntu (only tested on 15.04): -# $ apt install asciidoc automake bison cmake flex gettext libglib2.0-dev help2man libc6-dev-i386 libcurl4-openssl-dev libgdk-pixbuf2.0-dev libncurses5-dev libtool lzip m4 mercurial pkg-config scons texinfo xmlto xutils-dev -# where libc6-dev-i386 is needed by luajit host part of the build for -# xutils-dev provides 'makedepend' which openssl build uses -# gettext provides 'msgfmt' which apt build uses -# libcurl4-openssl-dev is needed by apt build -# libglib2.0-dev provides 'glib-genmarshal' which glib build uses -# libgdk-pixbuf2.0-dev provides 'gdk-pixbuf-query-loaders' which librsvg build uses -# Required setup for mac (not regularly used, and may not build all packages): -# $ port install asciidoc bison cmake flex gnutar help2man lzip mercurial p5-libwww-perl pkgconfig scons xmlto -# where Busybox requires that sed is gsed: ln -s /opt/local/bin/gsed /opt/local/bin/sed - set -e -o pipefail -u if [ "$#" -ne 1 ]; then echo "ERROR: Specify one argument!"; exit 1; fi diff --git a/ubuntu-setup.sh b/ubuntu-setup.sh new file mode 100755 index 000000000..a850f8c6c --- /dev/null +++ b/ubuntu-setup.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +PACKAGES="" +PACKAGES="$PACKAGES asciidoc" +PACKAGES="$PACKAGES automake" +PACKAGES="$PACKAGES bison" +PACKAGES="$PACKAGES cmake" +PACKAGES="$PACKAGES flex" +PACKAGES="$PACKAGES gettext" # Provides 'msgfmt' which the apt build uses +PACKAGES="$PACKAGES help2man" +PACKAGES="$PACKAGES libc6-dev-i386" # Needed by luajit host part of the build for +PACKAGES="$PACKAGES libcurl4-openssl-dev" # Needed by apt build +PACKAGES="$PACKAGES libgdk-pixbuf2.0-dev" # Provides 'gkd-pixbuf-query-loaders' which the librsvg build uses +PACKAGES="$PACKAGES libglib2.0-dev" # Provides 'glib-genmarshal' which the glib build uses +PACKAGES="$PACKAGES libncurses5-dev" +PACKAGES="$PACKAGES libtool" +PACKAGES="$PACKAGES lzip" +PACKAGES="$PACKAGES m4" +PACKAGES="$PACKAGES mercurial" +PACKAGES="$PACKAGES pkg-config" +PACKAGES="$PACKAGES scons" +PACKAGES="$PACKAGES texinfo" +PACKAGES="$PACKAGES xmlto" +PACKAGES="$PACKAGES xutils-dev" # Provides u'makedepend' which the openssl build uses +sudo apt install $PACKAGES + +sudo mkdir -p /data/data/com.termux/files/usr +sudo chown -R $USER /data