mirror of https://gitlab.com/tildes/tildes.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.0 KiB
40 lines
1.0 KiB
---
|
|
- name: Check if cmark-gfm is installed
|
|
stat:
|
|
path: /usr/local/lib/libcmark-gfm.so
|
|
register: cmark_gfm_library
|
|
|
|
- name: Download and install cmark-gfm
|
|
when: not cmark_gfm_library.stat.exists
|
|
block:
|
|
- name: Download cmark-gfm from GitHub
|
|
get_url:
|
|
dest: /tmp/cmark-gfm.tar.gz
|
|
url: https://github.com/github/cmark-gfm/archive/0.29.0.gfm.0.tar.gz
|
|
checksum: sha256:6a94aeaa59a583fadcbf28de81dea8641b3f56d935dda5b2447a3c8df6c95fea
|
|
|
|
- name: Create temp directory to extract cmark-gfm to
|
|
file:
|
|
path: /tmp/cmark-gfm
|
|
state: directory
|
|
|
|
- name: Extract cmark-gfm
|
|
unarchive:
|
|
remote_src: true
|
|
src: /tmp/cmark-gfm.tar.gz
|
|
dest: /tmp/cmark-gfm
|
|
extra_opts:
|
|
- --strip-components=1
|
|
|
|
- name: Install build dependencies for cmark-gfm
|
|
apt:
|
|
name:
|
|
- build-essential
|
|
- cmake
|
|
|
|
- name: Install cmark-gfm
|
|
shell:
|
|
chdir: /tmp/cmark-gfm
|
|
cmd: |
|
|
make
|
|
make install
|