|
|
| |
DESCRIPTION="A fast-paced first-person-perspective online multiplayer game similar to Tribes" | DESCRIPTION="A fast-paced first-person-perspective online multiplayer game similar to Tribes" |
HOMEPAGE="http://hosted.tribalwar.com/legends/" | HOMEPAGE="http://hosted.tribalwar.com/legends/" |
SRC_URI="http://themasters.co.za/${P}.tar.gz" |
SRC_URI="http://hosted.tribalwar.com/legends/files/${P}.tar.gz" |
| |
LICENSE="as-is" | LICENSE="as-is" |
SLOT="0" | SLOT="0" |
|
|
src_unpack() { | src_unpack() { |
unpack ${A} | unpack ${A} |
cd ${S} | cd ${S} |
rm runlegends libSDL-*.so* libopenal.so |
# keep libSDL-1.3.so because legends requires it as of 0.4.0, and |
|
# 1.2.6 is highest in portage |
|
# rm libSDL-*.so* |
|
rm runlegends libopenal.so |
find . -type f -exec chmod a-x '{}' \; | find . -type f -exec chmod a-x '{}' \; |
chmod a+x ispawn lindedicated LinLegends |
chmod a+x lindedicated LinLegends |
} | } |
| |
src_install() { | src_install() { |
local dir=${GAMES_PREFIX_OPT}/${PN} | local dir=${GAMES_PREFIX_OPT}/${PN} |
|
local LIBSDL=libSDL-1.3.so.0 |
| |
dodir ${dir} | dodir ${dir} |
cp -R * ${D}/${dir}/ || die "cp failed" | cp -R * ${D}/${dir}/ || die "cp failed" |
dogamesbin ${FILESDIR}/legends || die "dogamesbin failed (1)" |
newgamesbin ${FILESDIR}/legends-${PV} legends || die "newgamesbin failed (1)" |
dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/legends | dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/legends |
|
dosed "s:LIBSDL:${LIBSDL}:" ${GAMES_BINDIR}/legends |
if [ `use dedicated` ] ; then | if [ `use dedicated` ] ; then |
dogamesbin ${FILESDIR}/legends-ded || die "dogamesbin failed (2)" | dogamesbin ${FILESDIR}/legends-ded || die "dogamesbin failed (2)" |
dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/legends-ded | dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/legends-ded |