1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils desktop xdg-utils
8 MY_PN="SatelliteReignLinux"
12 DESCRIPTION="Real-time, class-based strategy game set in a cyberpunk city"
13 HOMEPAGE="http://satellitereign.com/"
14 SRC_URI="${MY_PN}${MY_PV}.zip"
15 LICENSE="all-rights-reserved"
17 KEYWORDS="-* ~amd64 ~x86"
19 RESTRICT="bindist fetch splitdebug"
21 BDEPEND="app-arch/unzip"
38 QA_PREBUILT="${DIR}/*"
41 einfo "Please buy and download ${SRC_URI} from:"
42 einfo " https://www.humblebundle.com/store/${PN}"
43 einfo "and move it to your distfiles directory."
48 newexe ${MY_PN}.$(usex amd64 x86_64 x86) ${MY_PN}
49 make_wrapper ${PN} "${DIR}"/${MY_PN}
52 doins -r ${MY_PN}_Data/
53 rm -r "${ED}/${DIR}"/${MY_PN}_Data/*/$(usex amd64 x86 x86_64) || die
56 rm "${ED}/${DIR}"/${MY_PN}_Data/Plugins/*/ScreenSelector.so || die
59 newicon -s 128 ${MY_PN}_Data/Resources/UnityPlayer.png ${PN}.png
60 make_desktop_entry ${PN} "Satellite Reign"
63 pkg_postinst() { xdg_icon_cache_update; }
64 pkg_postrm() { xdg_icon_cache_update; }