blob: 9b07c9b27192d2060c13c3ce17fb08df2ae24103 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
---
# Installs leptonica
- name: Install leptonica dependencies
apt:
state: present
name:
- g++
- git
- libjpeg62-turbo-dev
- libpng-dev
- libtiff-dev
- make
- zlib1g-dev
- name: Clone leptonica repository
git:
repo: https://github.com/nickjwhite/leptonica
dest: /home/{{ ansible_user }}/src/leptonica
version: addinstall
depth: 1
become: no
register: leptclone
- name: Build leptonica
command: make -f makefile.static {{ item }}
args:
chdir: /home/{{ ansible_user }}/src/leptonica/src
with_items:
- nodebug
- SHARED=yes shared
become: no
when: leptclone.changed
- name: Install leptonica
command: make -f makefile.static install
args:
chdir: /home/{{ ansible_user }}/src/leptonica/src
when: leptclone.changed
notify: update ld.so
|