2020-07-01 13:49:46 +00:00
|
|
|
---
|
2023-08-26 21:57:26 +00:00
|
|
|
- name: install required packages for st [Ubuntu]
|
2020-07-01 13:49:46 +00:00
|
|
|
become: yes
|
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
pkg:
|
2022-05-16 21:26:34 +00:00
|
|
|
- fonts-firacode
|
2022-07-25 19:42:16 +00:00
|
|
|
- fonts-symbola
|
2022-05-16 21:26:34 +00:00
|
|
|
- libharfbuzz-dev
|
2023-08-26 21:57:26 +00:00
|
|
|
when: ansible_distribution == "Ubuntu"
|
|
|
|
|
|
|
|
- name: install required packages for st [Arch]
|
|
|
|
become: yes
|
|
|
|
community.general.pacman:
|
|
|
|
name:
|
|
|
|
- ttf-fira-code
|
|
|
|
- harfbuzz
|
|
|
|
when: ansible_distribution == "Archlinux"
|
|
|
|
|
|
|
|
- name: install required packages for st [AUR]
|
|
|
|
shell:
|
|
|
|
cmd:
|
2023-10-24 09:43:28 +00:00
|
|
|
yay -S --needed --noconfirm ttf-symbola
|
2023-08-26 21:57:26 +00:00
|
|
|
when: ansible_distribution == "Archlinux"
|
2020-07-01 13:49:46 +00:00
|
|
|
|
2020-07-02 10:04:22 +00:00
|
|
|
- name: checkout st
|
|
|
|
git:
|
2024-05-10 18:29:51 +00:00
|
|
|
repo: "{{ git.st }}"
|
2023-08-08 21:09:36 +00:00
|
|
|
dest: "{{ desktop_src_dir }}/stterm"
|
2020-07-02 10:04:22 +00:00
|
|
|
clone: yes
|
|
|
|
update: yes
|
|
|
|
|
2020-07-01 13:49:46 +00:00
|
|
|
- name: build st
|
|
|
|
make:
|
2023-08-08 21:09:36 +00:00
|
|
|
chdir: "{{ desktop_src_dir }}/stterm"
|
2020-07-01 13:49:46 +00:00
|
|
|
|
|
|
|
- name: install st
|
|
|
|
become: yes
|
2020-07-02 10:04:22 +00:00
|
|
|
register: make
|
2020-07-01 13:49:46 +00:00
|
|
|
make:
|
2023-08-08 21:09:36 +00:00
|
|
|
chdir: "{{ desktop_src_dir }}/stterm"
|
2020-07-01 13:49:46 +00:00
|
|
|
target: install
|
2020-07-02 10:04:22 +00:00
|
|
|
|
|
|
|
- name: debug
|
|
|
|
debug: msg="{{ make.stdout }}"
|