--- {%- from "telegram/map.jinja" import telegram with context %} telegram-archive-extract: archive.extracted: - name: {{ telegram.dest_path }}{{ telegram.version }} - source: {{ telegram.mirror }}/v{{ telegram.version }}/tsetup.{{ telegram.version }}.tar.xz - skip_verify: true - archive_format: tar - enforce_toplevel: false - options: --transform 's/Telegram/telegram/g' --transform 's/Updater/updater/g' --strip 1 - keep: true - if_missing: {{ telegram.dest_path }}{{ telegram.version }}/telegram telegram-symlink: file.symlink: - name: {{ telegram.install_dir }}/telegram - target: {{ telegram.dest_path }}{{ telegram.version }} - force: true telegram-bin-symlink: file.symlink: - name: /usr/bin/telegram - target: {{ telegram.dest_path }}{{ telegram.version }}/telegram - force: true telegram-shortcut: file.managed: - name: /usr/share/applications/telegram.desktop - source: salt://telegram/telegram.desktop.j2 - user: root - group: root - mode: 644 - template: jinja