Skip to content

Instantly share code, notes, and snippets.

@nastycoder
Last active January 29, 2016 01:24
Show Gist options
  • Save nastycoder/62d419a113edeb0bb7f7 to your computer and use it in GitHub Desktop.
Save nastycoder/62d419a113edeb0bb7f7 to your computer and use it in GitHub Desktop.
Install dependancies for building safari extension from command line.
#!/bin/bash
# install openssl if its not already here
brew list $1 > /dev/null 2>&1 | true
if [[ ${PIPESTATUS[0]} != 0 ]]; then
brew install openssl
if [[ $? != 0 ]]; then
failure "failed to install openssl!"
exit 1
fi
fi
# force brew linking
brew link --force openssl
#!/bin/bash
LIB_DIR=/usr/local/lib
CURRENT_DIR=`pwd`
XAR=xar-1.6.1
cd $LIB_DIR
echo "Getting XAR"
wget https://github.com/downloads/mackyle/xar/xar-1.6.1.tar.gz
echo "Setting up XAR"
tar -xzvf $XAR.tar.gz
rm $XAR.tar.gz
cd $XAR
./configure
make
sudo make install
cd $CURRENT_DIR
echo "DONE!!!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment