# 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.linuxgamepublishing.com/" SRC_URI="" LICENSE="" SLOT="0" KEYWORDS="x86 amd64" IUSE="" DEPEND="" pkg_setup() { 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/ prepgamesdirs } pkg_postinst() { games_pkg_postinst echo einfo "Postal 2: Share The Pain" einfo "has been successfully installed." echo einfo "To play, type: postal2" echo }