Skip to content

Instantly share code, notes, and snippets.

@meyer
Forked from omarstreak/Install XAR
Last active January 2, 2016 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meyer/8350301 to your computer and use it in GitHub Desktop.
Save meyer/8350301 to your computer and use it in GitHub Desktop.
Install patched version of XAR 1.6.1. Installs to /usr/local
#!/bin/bash
# Make temp dir
LIB_DIR="${TMPDIR%%/}/xar-tmp/"
mkdir -p "$LIB_DIR"
cd "$LIB_DIR"
# Install lzma
brew install xz
# Download and unpack
curl -L "https://github.com/downloads/mackyle/xar/xar-1.6.1.tar.gz" | tar xz
cd "xar-1.6.1"
# Build
./configure
make && make install
# Probably not necessary
rm -r "$LIB_DIR"
echo "\nSuccess!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment