From 77d018dbc8afa9c22a049e0e0aa3f998ca9f8835 Mon Sep 17 00:00:00 2001 From: Drake Arconis Date: Sun, 23 Sep 2012 00:51:29 -0400 Subject: [PATCH] Dependency install script for linux. Currently only supports Arch. --- scripts/install-deps.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/install-deps.sh diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh new file mode 100755 index 000000000..d0f84d96b --- /dev/null +++ b/scripts/install-deps.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +if [ "$(whoami)" != "root" ]; then + echo "Run this as root! sudo should do the trick." + exit +fi + +if [ -f /etc/arch-release ]; then + echo -e "\e[1;31mArch Linux detected!\e[0m" + DEPS=`pacman -T apr apr-util base-devel boost boost-libs c-ares cmake curl db dbus-glib expat fmodex fontconfig freealut freetype2 gperftools glib2 gstreamer0.10 gtk2 hunspell libjpeg-turbo libogg libpng libvorbis openal openssl pcre qt qtwebkit sdl zlib | sed -e 's/\n/ /g'` + if [ -z "${DEPS}" ]; then + echo "Dependencies already installed." + else + pacman -S --asdeps ${DEPS} + fi +else # else + echo "Unsupported operating system." +fi