1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-10 05:51:30 +01:00
dotfiles/ansible/aur_packages/tasks/build_package.yml
2024-07-04 18:55:52 +02:00

25 lines
535 B
YAML

---
- debug:
msg: "Installing AUR package: {{ package }}"
- name: Clone package repo
become: true
become_method: sudo
become_user: nobody
git:
repo: "https://aur.archlinux.org/{{ package }}.git"
dest: "/home/build/{{ package }}"
# version: master
clone: true
force: true
- name: Build package
become: true
become_method: sudo
become_user: nobody
shell: |
cd "/home/build/{{package}}"
makepkg --force --syncdeps --rmdeps --noconfirm --install
environment:
GOCACHE: /tmp/go_cache/