1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Precursor to the Dominions series"
9 HOMEPAGE="http://www.shrapnelgames.com/Illwinter/CoE2/"
10 SRC_URI="http://download.shrapnelgames.com/downloads/${PN}_${PV}.zip"
12 LICENSE="all-rights-reserved"
14 KEYWORDS="~amd64 ~x86"
16 RESTRICT="mirror bindist"
18 RDEPEND="media-libs/libsdl[sound,video]"
25 QA_PREBUILT="${GAMES_PREFIX_OPT}/coe2/coe_linux"
28 rm -r *.{dll,exe} old || die
30 mv -f coe_linux64bit coe_linux || die
35 insinto "${GAMES_PREFIX_OPT}/${PN}"
36 doins *.{bgm,smp,trp,trs,wrl}
37 dodoc history.txt manual.txt readme.txt
38 exeinto "${GAMES_PREFIX_OPT}/${PN}"
41 games_make_wrapper ${PN} "./coe_linux" "${GAMES_PREFIX_OPT}/${PN}"
42 make_desktop_entry ${PN} "Conquest of Elysium 2"
44 # Slots for saved games.
45 # The game shows e.g. "EMPTY SLOT 0?", but it works.
46 local f slot state_dir=${GAMES_STATEDIR}/${PN}
48 for slot in {0..4} ; do
50 dosym "${state_dir}/save${slot}" "${GAMES_PREFIX_OPT}/${PN}/${f}"
51 echo "empty slot ${slot}" > "${D}${state_dir}/${f}" || die
52 fperms 660 "${state_dir}/${f}"