|
|
inherit eutils games | inherit eutils games |
| |
DESCRIPTION="You play the Postal Dude: POSTAL 2 is only as violent as you are." | DESCRIPTION="You play the Postal Dude: POSTAL 2 is only as violent as you are." |
HOMEPAGE="http://www.gopostal.com/home/" |
HOMEPAGE="http://www.gopostal.com/" |
SRC_URI="mirror://3dgamers/postal2/Missions/postal2mpdemo-lnx-${PV}.tar.bz2" | SRC_URI="mirror://3dgamers/postal2/Missions/postal2mpdemo-lnx-${PV}.tar.bz2" |
| |
LICENSE="postal2" | LICENSE="postal2" |
SLOT="0" | SLOT="0" |
KEYWORDS="~amd64 x86" | KEYWORDS="~amd64 x86" |
IUSE="" | IUSE="" |
RESTRICT="mirror" |
RESTRICT="mirror strip" |
| |
RDEPEND="|| ( x11-libs/libXext | RDEPEND="|| ( x11-libs/libXext |
virtual/x11 ) | virtual/x11 ) |
|
|
x11-drivers/nvidia-legacy-drivers | x11-drivers/nvidia-legacy-drivers |
>=x11-drivers/ati-drivers-8.8.25-r1 ) )" | >=x11-drivers/ati-drivers-8.8.25-r1 ) )" |
| |
S="${WORKDIR}" |
S=${WORKDIR} |
| |
GAMES_CHECK_LICENSE="yes" | GAMES_CHECK_LICENSE="yes" |
dir="${GAMES_PREFIX_OPT}/${PN}" |
dir=${GAMES_PREFIX_OPT}/${PN} |
Ddir="${D}/${dir}" |
|
| |
src_unpack() { | src_unpack() { |
unpack ${A} | unpack ${A} |
unpack_makeself postal2mpdemo-lnx-${PV}.run |
unpack_makeself postal2mpdemo-lnx-${PV}.run && rm $_ |
rm postal2mpdemo-lnx-${PV}.run |
unpack ./postal2mpdemo.tar && rm $_ |
dodir ${dir} |
unpack ./linux-specific.tar && rm $_ |
tar -xf postal2mpdemo.tar -C ${Ddir}/ || die "failed unpacking postal2mpdemo.tar" |
rm -r bin setup* System/*.log |
tar -xf linux-specific.tar -C ${Ddir}/ || die "failed unpacking linux-specific.tar" |
|
} | } |
| |
src_install() { | src_install() { |
insinto ${dir} |
insinto "${dir}" |
doins README.linux postal2mpdemo.xpm postal2mpdemo_eula.txt |
doins -r * || die "doins failed" |
| |
exeinto ${dir} |
games_make_wrapper ${PN} ./postal2-bin "${dir}"/System |
doexe bin/postal2mpdemo || die "doexe failed" |
|
dodir "${GAMES_BINDIR}" |
|
dosym "${dir}/postal2mpdemo" "${GAMES_BINDIR}/postal2mp-demo" |
|
| |
newicon postal2mpdemo.xpm ${PN}.xpm | newicon postal2mpdemo.xpm ${PN}.xpm |
make_desktop_entry ${PN} "Postal 2: Share the Pain (Demo)" ${PN}.xpm | make_desktop_entry ${PN} "Postal 2: Share the Pain (Demo)" ${PN}.xpm |
| |
|
fperms 750 "${dir}"/System/{postal2,ucc}-bin |
prepgamesdirs | prepgamesdirs |
} | } |