Skip to content

Commit

Permalink
grimshot: use the package from official repos
Browse files Browse the repository at this point in the history
  • Loading branch information
dezeroku committed Jul 22, 2024
1 parent c4e0635 commit afec9c8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
3 changes: 1 addition & 2 deletions roles/grimshot/meta/main.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
---
dependencies:
- role: aur_builder
dependencies: []
23 changes: 16 additions & 7 deletions roles/grimshot/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,29 @@
ansible.builtin.include_tasks:
file: flameshot-cleanup.yml

- name: Install the optdepends
- name: Get rid of grimshot package from AUR
become: true
become_user: root
community.general.pacman:
name:
- wl-clipboard
- grimshot
state: absent

- name: Install grimshot from AUR
- name: Install the optdepends and sway-contrib
become: true
become_user: aur_builder
kewlfft.aur.aur:
become_user: root
community.general.pacman:
name:
- grimshot
state: present
- wl-clipboard
- sway-contrib

- name: Symlink the grimshot script so it's in PATH
become: true
become_user: root
ansible.builtin.file:
src: "/usr/share/sway-contrib/grimshot"
dest: "/usr/local/bin/grimshot"
state: link

- name: Ensure directory exists
ansible.builtin.file:
Expand Down

0 comments on commit afec9c8

Please sign in to comment.