From d67e1589a2edfc0aef942f0e67fc774e315ae783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dionisio=20Mart=C3=ADnez=20Soler?= Date: Thu, 14 May 2020 16:17:46 +0200 Subject: [PATCH] Adding OpenBoard.yml for openboard.ch witheboard app --- recipes/OpenBoard.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 recipes/OpenBoard.yml diff --git a/recipes/OpenBoard.yml b/recipes/OpenBoard.yml new file mode 100644 index 00000000..518cd8fd --- /dev/null +++ b/recipes/OpenBoard.yml @@ -0,0 +1,23 @@ +app: openboard +union: true + +ingredients: + packages: + - openboard + dist: xenial + sources: + - deb http://archive.ubuntu.com/ubuntu/ xenial main universe + - deb http://archive.ubuntu.com/ubuntu/ xenial-updates main universe + script: + - DLD=$(wget -q "https://api.github.com/repos/OpenBoard-org/OpenBoard/releases/latest" -O - |grep "https.*amd64.deb"|cut -d'"' -f4) + - wget -c $DLD + - echo $DLD | cut -d/ -f9 | cut -d_ -f4 > VERSION +script: + - sed -i -e '/Version=/d' usr/share/applications/openboard.desktop + - sed -i -e '/Encoding=/d' usr/share/applications/openboard.desktop + - sed -i -e 's|MimeType=application/ubz|MimeType=application/ubz;|g' usr/share/applications/openboard.desktop + - rm openboard.desktop + - ln -s usr/share/applications/openboard.desktop openboard.desktop + - ln -s opt/openboard/OpenBoard.png OpenBoard.png + - ln -s ../../opt/openboard/OpenBoard usr/bin/openboard +