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-puzzle/larry/larry-1-r1.ebuild

66 lines
1.3 KiB

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils check-reqs gnome2-utils games
DESCRIPTION="Leisure Suit Larry Reloaded"
HOMEPAGE="https://www.replaygamesinc.com"
SRC_URI="LarryReloadedLinux.tar.gz"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RESTRICT="bindist fetch splitdebug"
QA_PREBUILT="${GAMES_PREFIX_OPT#/}/${PN}/Larry-Linux
${GAMES_PREFIX_OPT#/}/${PN}/Larry-Linux_Data/Mono/x86/libmono.so"
CHECKREQS_DISK_VAR="4500M"
CHECKREQS_DISK_USR="4500M"
S=${WORKDIR}
pkg_nofetch() {
einfo "Please buy & download ${SRC_URI} from:"
einfo " ${HOMEPAGE}"
einfo "and move it to ${DISTDIR}"
einfo
}
src_prepare() {
sed \
-e "s#@GAMES_DIR@#${GAMES_PREFIX_OPT}/${PN}#" \
"${FILESDIR}"/${PN}-wrapper > "${S}"/larry || die
}
src_install() {
newicon -s 128 Larry/Larry-Linux_Data/Resources/UnityPlayer.png ${PN}.png
make_desktop_entry ${PN}
dogamesbin larry
# move it, over 4gb
dodir "${GAMES_PREFIX_OPT}"/${PN}
mv Larry/* "${ED%/}/${GAMES_PREFIX_OPT}"/${PN}/ || die
fperms +x "${GAMES_PREFIX_OPT}"/${PN}/Larry-Linux
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}