Browse code

Add implementation

Robert Cranston authored on 30/01/2022 03:19:53
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,25 @@
1
+---
2
+
3
+- name: 'Check existence'
4
+  shell: '[ "$(command -v xwinwrap)" ] || [ -x {{ xwinwrap_prefix | quote }}/bin/xwinwrap ]'
5
+  register: xwinwrap_exists
6
+  changed_when: xwinwrap_exists.rc != 0
7
+  failed_when: false
8
+
9
+- name: 'Install build dependencies'
10
+  become: yes
11
+  apt:
12
+    name:
13
+      - 'make'
14
+      - 'gcc'
15
+      - 'libc6-dev'
16
+      - 'xorg-dev'
17
+      - 'libx11-dev'
18
+      - 'libxext-dev'
19
+      - 'libxrender-dev'
20
+      - 'x11proto-dev'
21
+  when: xwinwrap_exists.rc != 0
22
+
23
+- name: 'Clone, build and install'
24
+  script: 'install {{ xwinwrap_prefix | quote }} {{ xwinwrap_repo | quote }}'
25
+  when: xwinwrap_exists.rc != 0