diff options
Diffstat (limited to 'share/hoarder/tor-browser-alpha/unix/linux/install')
l---------[-rwxr-xr-x] | share/hoarder/tor-browser-alpha/unix/linux/install | 50 |
1 files changed, 1 insertions, 49 deletions
diff --git a/share/hoarder/tor-browser-alpha/unix/linux/install b/share/hoarder/tor-browser-alpha/unix/linux/install index a2e5dbd..b53efa1 100755..120000 --- a/share/hoarder/tor-browser-alpha/unix/linux/install +++ b/share/hoarder/tor-browser-alpha/unix/linux/install @@ -1,49 +1 @@ -#!/usr/bin/env sh -# -# Install Tor Browser Alpha -# - -# Parameters -SHARE="$1" -LIB="$2" - -# Include basic functions -. $LIB/trashman/functions || exit 1 - -# Requirements -trashman_require wget - -# Additional parameters -APP="tor-browser-alpha" -VERSION="13.0a1" -URL="https://www.torproject.org/dist/torbrowser/${VERSION}/" -FILE="tor-browser-linux64-${VERSION}_ALL.tar.xz" -WORK="`mktemp -d`" || exit 1 - -# Download -wget "$URL/$FILE" -O $WORK/$FILE || exit 1 -wget "$URL/$FILE.asc" -O $WORK/$FILE.asc || exit 1 - -# Verify -gpg --homedir $WORK/.gnupg --import $SHARE/$APP/unix/linux/files/$APP.asc || exit 1 -gpg --homedir $WORK/.gnupg --verify $WORK/$FILE.asc || exit 1 -rm -rf $WORK/.gnupg || exit 1 - -# Unpack -tar xvf $WORK/$FILE -C $WORK || exit 1 - -# Install -mkdir -p $HOME/.local/share || exit 1 -cd $HOME/.local/share || exit 1 -rm -rf $APP || exit 1 -mv $WORK/tor-browser $APP || exit 1 -rm -rf $WORK || exit 1 - -# Create symlink to scripts -mkdir -p $HOME/.local/bin || exit 1 -cd $HOME/.local/bin || exit 1 -ln -sf $HOME/.local/share/$APP/Browser/start-tor-browser $APP || exit 1 - -# Done -trashman_installed_at $HOME/.local/share/$APP -trashman_run_with $HOME/.local/bin/$APP +../../../tor-browser/unix/linux/install
\ No newline at end of file |