diff options
Diffstat (limited to 'games-action/postalplus/postalplus-1.ebuild')
-rw-r--r-- | games-action/postalplus/postalplus-1.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/games-action/postalplus/postalplus-1.ebuild b/games-action/postalplus/postalplus-1.ebuild new file mode 100644 index 000000000000..e3f06d89f7b9 --- /dev/null +++ b/games-action/postalplus/postalplus-1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils cdrom games + +DESCRIPTION="Ultraviolent and controversial game featuring the Postal Dude" +HOMEPAGE="http://www.lokigames.com/products/postal/" +SRC_URI="" + +LICENSE="LOKI-EULA" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +RESTRICT="strip" + +S=${WORKDIR} + +src_install() { + local dir=${GAMES_PREFIX_OPT}/${PN} + + cdrom_get_cds postal_plus.ini + exeinto "${dir}" + doexe "${CDROM_ROOT}"/bin/x86/postal + insinto "${dir}" + doins "${CDROM_ROOT}"/{icon.{bmp,xpm},postal_plus.ini,README} + cp "${CDROM_ROOT}"/icon.xpm ${PN}.xpm || die + + cp -r "${CDROM_ROOT}"/res "${D}${dir}" || die + find "${D}" -name TRANS.TBL -exec rm '{}' + + + games_make_wrapper ${PN} ./postal "${dir}" + doicon ${PN}.xpm + make_desktop_entry ${PN} "Postal Plus" ${PN} + + prepgamesdirs +} |