aboutsummaryrefslogtreecommitdiffstats
path: root/element-desktop/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-25 16:28:08 +0200
committerMattias Andrée <maandree@kth.se>2021-06-25 16:28:08 +0200
commit1357517ecf7706c453c1c2d37ce45f81f9c44ea1 (patch)
tree29e33991c6f2b4a0116f3e917c36029a8a3bdb49 /element-desktop/Makefile
parentCheck that rotd/config and libcontacts/contacts have been created (diff)
downloaddotfiles-1357517ecf7706c453c1c2d37ce45f81f9c44ea1.tar.gz
dotfiles-1357517ecf7706c453c1c2d37ce45f81f9c44ea1.tar.bz2
dotfiles-1357517ecf7706c453c1c2d37ce45f81f9c44ea1.tar.xz
Improve signal-desktop confs and add element-desktop and wire-desktop confs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'element-desktop/Makefile')
-rw-r--r--element-desktop/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/element-desktop/Makefile b/element-desktop/Makefile
new file mode 100644
index 0000000..60aeb57
--- /dev/null
+++ b/element-desktop/Makefile
@@ -0,0 +1,19 @@
+.POSIX:
+
+install:
+ test -f ~/.var/element/ElementCrypt.img
+ test -f ~/.var/element/ElementCrypt.key
+ mkdir -p -- ~/.var/element/ElementCrypt.d
+ test -e ~/.config/Element || ln -s -- ../.var/element/ElementCrypt.d/Element ~/.config/Element
+ pacman -Qq -- asroot </dev/null >/dev/null
+ pacman -Qq -- gnupg </dev/null >/dev/null
+ pacman -Qq -- cryptsetup </dev/null >/dev/null
+ mkdir -p -- ~/.config/bash/aliases.d
+ test ! -d ~/.config/bash/aliases.d/element-desktop
+ ln -sf -- ~/.dotfiles/element-desktop/bash-aliases ~/.config/bash/aliases.d/element-desktop
+
+uninstall:
+ -unlink -- ~/.config/bash/aliases.d/element-desktop
+ -rmdir -- ~/.config/bash/aliases.d
+
+.PHONY: install uninstall