Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions recipes/Battle_for_Wesnoth.yml
Original file line number Diff line number Diff line change
@@ -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