TEST: Force current Unarchiver to be installed

Must compile from source
This commit is contained in:
T. Joseph Carter 2015-10-12 15:44:21 -07:00
parent 847932886a
commit f7e937ea22

View File

@ -75,6 +75,7 @@ if [[ ! -f /usr/local/bin/unar ]]; then
touch /tmp/a2server-packageReposUpdated
fi
:<<COMMENT
if [[ $isRpi || $isDebian ]]; then
sudo apt-get -y install libgnustep-base1.22
sudo apt-get clean
@ -84,7 +85,8 @@ if [[ ! -f /usr/local/bin/unar ]]; then
wget -qO- "http://appleii.ivanx.com/a2server/files/unar-debian7_x86.tgz" | sudo tar Pzx
fi
fi
if [[ ! -f /usr/local/bin/unar ]]; then
COMMENT
if [[ ! -f /usr/local/bin/unar | "`/usr/local/bin/unar -v`" != "v1.9.1" ]]; then
sudo apt-get -y install build-essential \
libgnustep-base-dev libz-dev libbz2-dev \
libssl-dev libicu-dev unzip
@ -92,8 +94,8 @@ if [[ ! -f /usr/local/bin/unar ]]; then
rm -rf /tmp/unar &> /dev/null
mkdir /tmp/unar
cd /tmp/unar
wget -qO unar1.7_src.zip http://theunarchiver.googlecode.com/files/unar1.7_src.zip
unzip -o unar1.7_src.zip
wget -qO unar1.9_src.zip http://unarchiver.c3.cx/downloads/unar1.9.1_src.zip
unzip -o unar1.9_src.zip
cd The\ Unarchiver/XADMaster
make -f Makefile.linux
sudo mv lsar unar /usr/local/bin