# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games DESCRIPTION="Postal 2: Share The Pain" HOMEPAGE="http://www.gopostal.com/" SRC_URI="" LICENSE="postal2" SLOT="0" KEYWORDS="~x86" IUSE="" RESTRICT="nostrip" RDEPEND="|| ( x11-libs/libXext virtual/x11 ) amd64? ( app-emulation/emul-linux-x86-baselibs app-emulation/emul-linux-x86-xlibs >=media-video/nvidia-glx-1.0.6629-r3 )" pkg_setup() { check_license postal2 cdrom_get_cds .installation_data/postal2.tar.bz2 games_pkg_setup } src_install() { local dir=${GAMES_PREFIX_OPT}/${PN} local Ddir=${D}/${dir} dodir ${dir} # Extract game data from tarball on CD tar -jxf ${CDROM_ROOT}/.installation_data/postal2.tar.bz2 -C ${Ddir}/ || die 'Failed to extract postal2.tar.bz2' tar -jxf ${CDROM_ROOT}/.installation_data/linux-specific.tar.bz2 -C ${Ddir}/ || die 'Failed to extract linux-specific.tar.bz2' # Copy over binaries exeinto ${dir} exeopts -m0755 # doexe ${CDROM_ROOT}/creatures3/bin/x86/* games_make_wrapper postal2 ./postal2-bin ${dir}/System/ doicon ${CDROM_ROOT}/.installation_data/postal2.xpm prepgamesdirs make_desktop_entry postal2 "Postal 2: Share the Pain" postal2.xpm } pkg_postinst() { games_pkg_postinst echo einfo "Postal 2: Share The Pain" einfo "has been successfully installed." echo einfo "To play, type: postal2" echo }