1 # Copyright © 2013, 2015, 2021 Nick Bowler
2 # License GPLv3+: GNU General Public License version 3 or any later version.
3 # This is free software: you are free to change and redistribute it.
4 # There is NO WARRANTY, to the extent permitted by law.
10 DESCRIPTION="Master of Orion 2 Data Files"
11 SRC_URI="gog_master_of_orion_2_2.0.0.6.sh"
19 BDEPEND="app-arch/unzip
21 || ( media-gfx/graphicsmagick media-gfx/imagemagick )"
24 ( unzip -LLqd $P "$DISTDIR/$A" || exit $(($?>1)) ) ||
25 die "Failed to extract $A"
29 wrestool -t 14 -x -o orion95.ico data/noarch/data/orion95.exe || die
30 convert=`has_version media-gfx/graphicsmagick && echo 'gm'`
31 convert=${convert:+"$convert "}convert
34 $convert orion95.ico moo2.png || die
38 insinto "/usr/share/$PN"
39 doins data/noarch/data/*.lbx
42 newicon -s 256 data/noarch/support/icon.png moo2.png