1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit desktop xdg-utils
8 MY_PN="Hatoful Boyfriend"
9 DESCRIPTION="Japanese visual novel and dating simulator where birds rule the Earth"
10 HOMEPAGE="https://www.devolverdigital.com/games/hatoful-boyfriend"
11 SRC_URI="${MY_PN// /_}_Linux.zip"
12 LICENSE="all-rights-reserved"
14 KEYWORDS="-* ~amd64 ~x86"
16 RESTRICT="bindist fetch splitdebug"
28 media-libs/fontconfig:1.0
37 S="${WORKDIR}/${MY_PN}_Linux"
40 QA_PREBUILT="${DIR#/}/*"
43 einfo "Please buy and download ${SRC_URI} from:"
44 einfo " https://www.humblebundle.com/store/${PN}"
45 einfo "and move it to your distfiles directory."
50 newexe hatoful.$(usex amd64 x86_64 x86) hatoful
51 dosym "${DIR}"/hatoful /usr/bin/${PN}
54 doins -r hatoful_Data/
55 rm -r "${ED}/${DIR}"/hatoful_Data/*/$(usex amd64 x86 x86_64) || die
58 rm "${ED}/${DIR}"/hatoful_Data/Plugins/*/ScreenSelector.so || die
61 newicon -s 128 hatoful_Data/Resources/UnityPlayer.png ${PN}.png
62 make_desktop_entry ${PN} "${MY_PN}"
65 pkg_postinst() { xdg_icon_cache_update; }
66 pkg_postrm() { xdg_icon_cache_update; }