Skip to content

Instantly share code, notes, and snippets.

@brodul
Created February 19, 2017 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brodul/50e4ff82ceaeab14e788efd5121b383b to your computer and use it in GitHub Desktop.
Save brodul/50e4ff82ceaeab14e788efd5121b383b to your computer and use it in GitHub Desktop.
---
- hosts: rpi
vars:
build_dir: /home/pi/info-beamer-build
tasks:
- name: install build tools
apt:
name:
- git
update_cache: yes
become: true
- name: install infobeamer deps
apt:
name:
- liblua5.1-dev
- libevent-dev
- libglfw3-dev
- libglew1.5-dev
- libftgl-dev
- libavcodec-dev
- libswscale-dev
- libavformat-dev
- libdevil-dev
- libxinerama-dev
- libxcursor-dev
- libxrandr-dev
- libxi-dev
- lua5.1
- git
update_cache: yes
become: true
- name: install xserver
apt:
name:
- xserver-xorg
- xinit
update_cache: yes
install_recommends: no
become: true
- name: ensure build dir
file: path={{ build_dir }} state=directory
- name: get infobeamer
git:
repo: https://github.com/dividuum/info-beamer.git
dest: "{{ build_dir }}"
- name: build info beamer
make:
chdir: "{{ build_dir }}"
- name: install
make:
chdir: "{{ build_dir }}"
target: install
become: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment