aboutsummaryrefslogtreecommitdiff
path: root/share/hoarder/signal-cli
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-11-09 20:10:02 -0200
committerSilvio Rhatto <rhatto@riseup.net>2018-11-09 20:10:02 -0200
commit3ea9a831284da8d4d0710e40f4d56a3d54c79fc3 (patch)
treecb8cf162e03fa4e3e0e9326ebc62607e742a0368 /share/hoarder/signal-cli
parent5a538984ec71b08d065a2882d9eb289e9b218cce (diff)
downloadtrashman-3ea9a831284da8d4d0710e40f4d56a3d54c79fc3.tar.gz
trashman-3ea9a831284da8d4d0710e40f4d56a3d54c79fc3.tar.bz2
Adds signal-cli
Diffstat (limited to 'share/hoarder/signal-cli')
-rw-r--r--share/hoarder/signal-cli/info0
-rwxr-xr-xshare/hoarder/signal-cli/unix/linux/debian/install37
2 files changed, 37 insertions, 0 deletions
diff --git a/share/hoarder/signal-cli/info b/share/hoarder/signal-cli/info
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/share/hoarder/signal-cli/info
diff --git a/share/hoarder/signal-cli/unix/linux/debian/install b/share/hoarder/signal-cli/unix/linux/debian/install
new file mode 100755
index 0000000..48c5d76
--- /dev/null
+++ b/share/hoarder/signal-cli/unix/linux/debian/install
@@ -0,0 +1,37 @@
+#!/usr/bin/env sh
+#
+# Install signal-cli
+#
+
+# Parameters
+SHARE="$1"
+LIB="$2"
+
+# Include basic functions
+. $LIB/trashman/functions || exit 1
+. $LIB/trashman/debian || exit 1
+
+# Requirements
+trashman_apt_install_packages gradle
+
+# Go to working folder
+mkdir -p $HOME/.local/share
+cd $HOME/.local/share
+
+# Get the code
+if [ -d "signal-cli" ]; then
+ cd signal-cli && git pull || exit 1
+else
+ git clone https://github.com/AsamK/signal-cli && cd signal-cli || exit 1
+fi
+
+# Build
+./gradlew build
+./gradlew installDist
+
+# Create symlink to scripts
+mkdir -p $HOME/.local/bin
+cd $HOME/.local/bin
+ln -sf $HOME/.local/share/signal-cli/build/install/signal-cli/bin/signal-cli
+#echo "cd $HOME/.local/share/signal-cli/build/install/signal-cli/bin/signal-cli && ./signal-cli" > signal-cli
+chmod +x signal-cli