You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-action/brutal-legend/brutal-legend-20130615.ebuild

97 lines
2.0 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/brutal-legend/brutal-legend-20130615.ebuild,v 1.1 2013/11/24 23:29:34 hasufell Exp $
# TODO: unbundle libsdl-2
EAPI=5
inherit eutils unpacker gnome2-utils games
TIMESTAMP=${PV:0:4}-${PV:4:2}-${PV:6:2}
DESCRIPTION="Crush skulls, ravage the road in the Deuce, and unleash the power of Heavy Metal to reign down fire from the sky"
HOMEPAGE="https://www.ea.com/de/brutal-legend"
SRC_URI="BrutalLegend-Linux-${TIMESTAMP}-setup.bin"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="bindist fetch splitdebug"
MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${MYGAMEDIR#/}/lib/*
${MYGAMEDIR#/}/Buddha.bin.x86"
RDEPEND="
amd64? (
|| (
(
app-emulation/emul-linux-x86-baselibs
app-emulation/emul-linux-x86-opengl
app-emulation/emul-linux-x86-xlibs
)
(
sys-libs/zlib[abi_x86_32]
virtual/glu[abi_x86_32]
virtual/opengl[abi_x86_32]
x11-libs/libX11[abi_x86_32]
x11-libs/libXau[abi_x86_32]
x11-libs/libXdmcp[abi_x86_32]
x11-libs/libXext[abi_x86_32]
x11-libs/libxcb[abi_x86_32]
)
)
)
x86? (
sys-libs/zlib
virtual/glu
virtual/opengl
x11-libs/libX11
x11-libs/libXau
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libxcb
)"
DEPEND="app-arch/unzip"
S=${WORKDIR}/data
pkg_nofetch() {
einfo "Please buy & download ${SRC_URI} from:"
einfo " https://www.humblebundle.com/store"
einfo "and move it to ${DISTDIR}"
}
src_unpack() {
unpack_zip ${A}
}
src_install() {
newicon -s 256 Buddha.png ${PN}.png
games_make_wrapper ${PN} "./Buddha.bin.x86" "${MYGAMEDIR}" "${MYGAMEDIR}/lib"
make_desktop_entry ${PN}
dodir "${MYGAMEDIR}"
# this is over 9000!!!! ...eh, 8GB data
mv * "${D%/}/${MYGAMEDIR}" || die
fperms +x "${MYGAMEDIR}/Buddha.bin.x86"
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}