From 8936cfc2392f9028a1ba02fda10a8ef96b4fa995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismael=20Barros=C2=B2?= Date: Thu, 28 Jan 2021 00:03:02 +0000 Subject: [PATCH] Added Battle for Wesnoth recipe --- recipes/Battle_for_Wesnoth.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 recipes/Battle_for_Wesnoth.yml diff --git a/recipes/Battle_for_Wesnoth.yml b/recipes/Battle_for_Wesnoth.yml new file mode 100644 index 00000000..88559a06 --- /dev/null +++ b/recipes/Battle_for_Wesnoth.yml @@ -0,0 +1,21 @@ +app: Battle_for_Wesnoth + +ingredients: + packages: + - wesnoth + - wesnoth-music + dist: xenial + sources: + - deb http://archive.ubuntu.com/ubuntu/ xenial main universe security + ppas: + #- vincent-c/wesnoth + - pkg-games/wesnoth-devel + +script: + - mv usr/share/applications/wesnoth-?.??.desktop wesnoth.desktop + - mv usr/share/icons/hicolor/512x512/apps/wesnoth-icon.png wesnoth.png + - sed -i "s/^Icon=.*/Icon=wesnoth.png/" wesnoth.desktop + - sed -i "/^Exec=/s/-nolog//" wesnoth.desktop + - sed -i 's#/usr#././#g' usr/games/wesnoth-* + - for i in $(find usr/share/games/wesnoth/*/fonts/ -type l); do mv "$(readlink "$i" | sed "s|^/||")" "$i"; done + - rm -r etc usr/share/man usr/share/X11 usr/share/icons/hicolor usr/share/applications