Skip to content

Instantly share code, notes, and snippets.

@meyer
Forked from omarstreak/Install XAR
Last active September 13, 2024 03:02
Show Gist options
  • 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