aboutsummaryrefslogtreecommitdiffstats
path: root/roles/_workstation/makepkg/tasks/install.yml
blob: b9caeef8cd839f4fc5406901d94082d2e77f087a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---

- name: clone repository  # noqa: latest[git]
  ansible.builtin.git:
    repo: "{{ makepkg_mirror_url }}/{{ makepkg_package_name }}.git"
    dest: "{{ makepkg_root_build_dir }}/{{ makepkg_package_name }}"
    force: true
  become: true
  become_user: "{{ makepkg_user }}"

- name: make package  # noqa: no-changed-when
  ansible.builtin.command:
    cmd: makepkg -fs
    chdir: "{{ makepkg_root_build_dir }}/{{ makepkg_package_name }}"
  become: true
  become_user: "{{ makepkg_user }}"

- name: install package  # noqa: no-changed-when
  ansible.builtin.shell:
    cmd: pacman --noconfirm -U *.zst
    chdir: "{{ makepkg_root_build_dir }}/{{ makepkg_package_name }}"
remember that computers suck.