aboutsummaryrefslogtreecommitdiff
path: root/share/hoarder
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2021-04-21 20:55:08 -0300
committerSilvio Rhatto <rhatto@riseup.net>2021-04-21 20:55:08 -0300
commit68ff0a689cdc9095fa50df734eb7d781d0cd7043 (patch)
tree0319ac17a4f893ea469321cd74f7dd499859f9a3 /share/hoarder
parent461f899bba3b17e18f6b4bed1681a1840a38f03c (diff)
downloadtrashman-68ff0a689cdc9095fa50df734eb7d781d0cd7043.tar.gz
trashman-68ff0a689cdc9095fa50df734eb7d781d0cd7043.tar.bz2
Feat: hoarder: adds firefox-dev
Diffstat (limited to 'share/hoarder')
-rw-r--r--share/hoarder/firefox-dev/info1
-rwxr-xr-xshare/hoarder/firefox-dev/unix/linux/install43
2 files changed, 44 insertions, 0 deletions
diff --git a/share/hoarder/firefox-dev/info b/share/hoarder/firefox-dev/info
new file mode 100644
index 0000000..f7c6218
--- /dev/null
+++ b/share/hoarder/firefox-dev/info
@@ -0,0 +1 @@
+mozilla firefox developer edition
diff --git a/share/hoarder/firefox-dev/unix/linux/install b/share/hoarder/firefox-dev/unix/linux/install
new file mode 100755
index 0000000..cfcb23e
--- /dev/null
+++ b/share/hoarder/firefox-dev/unix/linux/install
@@ -0,0 +1,43 @@
+#!/usr/bin/env sh
+#
+# Install Firefox Developer Edition
+#
+
+# Parameters
+SHARE="$1"
+LIB="$2"
+
+# Include basic functions
+. $LIB/trashman/functions || exit 1
+. $LIB/trashman/debian || exit 1
+
+# Requirements
+if ! which wget &> /dev/null; then
+ echo "Needs a working wget installation."
+ exit 1
+fi
+
+# Additional parameters
+URL="https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=en"
+FILE="firefox-dev-latest.tar.bz"
+
+# Working folder
+CWD="`pwd`"
+WORK="`mktemp -d`" || exit 1
+cd $WORK &> /dev/null
+
+# Get the code
+wget "$URL" -O $FILE || exit 1
+tar xvf $FILE || exit 1
+
+cd $CWD
+mkdir -p $HOME/.local/share || exit 1
+cd $HOME/.local/share &> /dev/null || exit 1
+rm -rf firefox-dev || exit 1
+mv ~/$WORK/firefox firefox-dev || exit 1
+rm -rf $WORK || exit 1
+
+# Create symlink to scripts
+mkdir -p $HOME/.local/bin
+cd $HOME/.local/bin
+ln -sf $HOME/.local/share/firefox-dev/firefox