# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-action/lugaru/lugaru-1.0c.ebuild,v 1.3 2013/03/29 15:30:29 hasufell Exp $ EAPI=5 inherit eutils unpacker games MYDATE=08042013 DESCRIPTION="3D arcade with unique fighting system and anthropomorphic characters" HOMEPAGE="http://www.wolfire.com/lugaru" SRC_URI="${PN}-full-linux-x86-${PV}.bin" SRC_URI="${PN}-linux-${MYDATE}-bin" LICENSE="as-is" SLOT="0" KEYWORDS="-* ~amd64 ~x86" IUSE="" RESTRICT="fetch strip" DEPEND="app-arch/unzip" RDEPEND="sys-libs/glibc amd64? ( app-emulation/emul-linux-x86-sdl ) x86? ( media-libs/libsdl2 media-libs/openal )" S=${WORKDIR}/data src_unpack() { # self unpacking zip archive; unzip warns about the exe stuff unpack_zip ${A} # Duplicate file and can't be handled by portage, bug #14983 rm -f "${S}/Data/Textures/Quit.png " } src_install() { local dir=${GAMES_PREFIX_OPT}/lugaru insinto "${dir}" doins -r Data dodoc *.txt exeinto "${dir}" doexe ${PN} # 32-bit libsdl2 currently isn't available for amd64, so use embedded copy use amd64 && doexe libSDL2-2.0.so.0 games_make_wrapper ${PN} ./${PN} "${dir}" "${dir}" doicon ${PN}.png make_desktop_entry ${PN} Lugaru ${PN} prepgamesdirs }