blob: acc013c42085e0582b4657a47bc5e8e28b772c6f (
plain) (
tree)
|
|
.POSIX:
install:
test -f ~/.var/opt/element/ElementCrypt.img
test -f ~/.var/opt/element/ElementCrypt.key
mkdir -p -- ~/.var/opt/element/ElementCrypt.d
test -e ~/.config/Element || ln -sf -- ../.var/opt/element/ElementCrypt.d/Element ~/.config/Element
../check-any-installed asroot asroot-libpassphrase
../check-installed gnupg
../check-installed cryptsetup
../check-installed key2root
../check-installed-shebang mount-element
../check-installed-shebang umount-element
../check-installed-shebang element-desktop
mkdir -p -- ~/.local/bin/
test ! -e ~/.local/bin/mount-element || test -L ~/.local/bin/mount-element
ln -sf -- ~/.dotfiles/element-desktop/mount-element ~/.local/bin/
test ! -e ~/.local/bin/umount-element || test -L ~/.local/bin/umount-element
ln -sf -- ~/.dotfiles/element-desktop/umount-element ~/.local/bin/
test ! -e ~/.local/bin/element-desktop || test -L ~/.local/bin/element-desktop
ln -sf -- ~/.dotfiles/element-desktop/element-desktop ~/.local/bin/
uninstall:
+! ../check-installed element-desktop
-unlink -- ~/.local/bin/mount-element
-unlink -- ~/.local/bin/umount-element
-unlink -- ~/.local/bin/element-desktop
|