You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
1.8 KiB
77 lines
1.8 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
10 years ago
|
|
||
4 years ago
|
EAPI=7
|
||
|
|
||
|
inherit desktop unpacker wrapper
|
||
13 years ago
|
|
||
|
MY_P="ut2004-lnx-demo${PV}.run"
|
||
|
DESCRIPTION="Demo for the critically-acclaimed first-person shooter"
|
||
|
HOMEPAGE="http://www.unrealtournament.com/"
|
||
12 years ago
|
SRC_URI="mirror://gentoo/${MY_P}"
|
||
4 years ago
|
S="${WORKDIR}"
|
||
13 years ago
|
|
||
11 years ago
|
LICENSE="ut2003-demo"
|
||
13 years ago
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="-* ~amd64 ~x86"
|
||
3 years ago
|
RESTRICT="bindist mirror strip"
|
||
13 years ago
|
|
||
10 years ago
|
RDEPEND="
|
||
4 years ago
|
sys-libs/libstdc++-v3:5
|
||
9 years ago
|
x11-libs/libX11[abi_x86_32(-)]
|
||
|
x11-libs/libXext[abi_x86_32(-)]
|
||
|
virtual/opengl[abi_x86_32(-)]
|
||
10 years ago
|
"
|
||
3 years ago
|
|
||
3 years ago
|
dir=/opt/${PN}
|
||
|
Ddir="${ED}"/${dir#/}
|
||
|
QA_PREBUILT="${dir#/}/System/*"
|
||
13 years ago
|
|
||
|
src_unpack() {
|
||
|
unpack_makeself
|
||
13 years ago
|
unpack ./setupstuff.tar.gz
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
4 years ago
|
dodir ${dir}
|
||
13 years ago
|
|
||
10 years ago
|
tar xjf ut2004demo.tar.bz2 -C "${Ddir}" || die
|
||
13 years ago
|
|
||
4 years ago
|
if use x86 ; then
|
||
10 years ago
|
tar xjf linux-x86.tar.bz2 || die
|
||
4 years ago
|
elif use amd64 ; then
|
||
10 years ago
|
tar xjf linux-amd64.tar.bz2 || die
|
||
13 years ago
|
fi
|
||
|
|
||
4 years ago
|
insinto ${dir}
|
||
13 years ago
|
doins README.linux ut2004.xpm
|
||
|
newicon ut2004.xpm ut2004-demo.xpm
|
||
|
|
||
4 years ago
|
exeinto ${dir}
|
||
13 years ago
|
doexe bin/ut2004-demo
|
||
|
|
||
4 years ago
|
exeinto ${dir}/System
|
||
13 years ago
|
doexe System/{libSDL-1.2.so.0,openal.so,ucc-bin,ut2004-bin}
|
||
|
|
||
4 years ago
|
make_wrapper ut2004-demo ./ut2004-demo "${dir}" "${dir}"
|
||
13 years ago
|
make_desktop_entry ut2004-demo "Unreal Tournament 2004 (Demo)" ut2004-demo
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
echo
|
||
|
elog "For Text To Speech:"
|
||
|
elog " 1) emerge festival speechd"
|
||
|
elog " 2) Edit your ~/.ut2004demo/System/UT2004.ini file."
|
||
|
elog " In the [SDLDrv.SDLClient] section, add:"
|
||
|
elog " TextToSpeechFile=/dev/speech"
|
||
|
elog " 3) Start speechd."
|
||
|
elog " 4) Start the game. Be sure to go into the Audio"
|
||
|
elog " options and enable Text To Speech."
|
||
|
echo
|
||
|
elog "To test, pull down the console (~) and type:"
|
||
|
elog " TTS this is a test."
|
||
|
echo
|
||
|
elog "You should hear something that sounds like 'This is a test.'"
|
||
|
echo
|
||
|
}
|