Skip to content

Instantly share code, notes, and snippets.

@serverhiccups
Last active January 4, 2016 23:17
Show Gist options
  • Save serverhiccups/26d374380cdcb8eed7fe to your computer and use it in GitHub Desktop.
Save serverhiccups/26d374380cdcb8eed7fe to your computer and use it in GitHub Desktop.
A kea installer for Mac OSX.
#!/bin/bash
#This is a shell script created by hiccup01 to install kea on Mac OSX.
VERSION="0.0.1" #Installer version
BVERSION="0.2.2" #Browser version
echo "Thanks for installing kea"
echo "You are running Mac OSX kea installer version $VERSION for kea version $BVERSION."
echo "This installer was created by hiccup01 (hiccup01.com)"
sleep 1
echo "At some points you may be prompted to enter your password. Type it and press \"enter\". (It will not display your password on screen)"
sleep 3
echo "Attempting to install brew package mananger, if brew is already installed this will have no effect"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Installing kea dependencies"
brew install webkitgtk unp gnu-tar gzip wget
$DIRECTORY="~"
cd $DIRECTORY
echo "Creating directory."
mkdir "kea"
cd kea
echo "Downloading kea."
wget https://github.com/Jonathan50/kea-browser/releases/download/v$BVERSION/kea-$BVERSION.tar.gz
echo "Unziping."
unp kea-$BVERSION.tar.gz
cd kea-$BVERSION
echo "Configuring."
./configure
echo "making and installing"
make && sudo make install
echo "kea is installed. Run \"kea\" to run it."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment