diff options
author | Christian Schmitt <chris@ilovelinux.de> | 2015-08-27 18:16:11 +0200 |
---|---|---|
committer | Christian Schmitt <chris@ilovelinux.de> | 2015-08-27 18:16:11 +0200 |
commit | 23e47f7d7c32f8ac4a27b309c67f81891dd8d2ba (patch) | |
tree | 3e26f8090f585815215a74db3fadd87551b3aa39 /games-fps | |
parent | [games-fps/rtcw-9999] Some nice improvements from Lars Wendler (polynomial-c)... (diff) | |
download | gamerlay-23e47f7d7c32f8ac4a27b309c67f81891dd8d2ba.tar.gz gamerlay-23e47f7d7c32f8ac4a27b309c67f81891dd8d2ba.tar.bz2 gamerlay-23e47f7d7c32f8ac4a27b309c67f81891dd8d2ba.zip |
[games-fps/rtcw-9999] Download most of the pk3 files from the last point release and install them as well (thanks again, polynomial-c)
Diffstat (limited to 'games-fps')
-rw-r--r-- | games-fps/rtcw/rtcw-9999.ebuild | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/games-fps/rtcw/rtcw-9999.ebuild b/games-fps/rtcw/rtcw-9999.ebuild index e50f689..961a07a 100644 --- a/games-fps/rtcw/rtcw-9999.ebuild +++ b/games-fps/rtcw/rtcw-9999.ebuild @@ -6,7 +6,7 @@ EAPI=5 SCM="" [[ "${PV}" = 9999 ]] && SCM="git-r3" -inherit eutils games ${SCM} +inherit eutils games unpacker ${SCM} unset SCM DESCRIPTION="Return to Castle Wolfenstein - IORTCW Project" @@ -20,7 +20,11 @@ else KEYWORDS="~amd64 ~x86" fi -LICENSE="GPL-2" +WOLF_POINTRELEASE="wolf-linux-1.41b.x86.run" +SRC_URI+=" mirror://idsoftware/wolf/linux/${WOLF_POINTRELEASE}" +# iortcw is GPL-2 but the point release files still have the original copyrights +# from ID-software +LICENSE="GPL-2 RTCW" SLOT="0" IUSE="+client curl mumble openal opus server truetype voip vorbis" @@ -69,6 +73,16 @@ use_switch() { fi } +src_unpack() { + if [[ "${PV}" = 9999 ]] ; then + git-r3_src_unpack + else + default + fi + + unpack_makeself "${DISTDIR}/${WOLF_POINTRELEASE}" +} + src_prepare(){ epatch "${FILESDIR}/${PN}-zlib.patch" cp "${FILESDIR}/Makefile.local" "${S}/SP/" @@ -97,7 +111,9 @@ src_prepare(){ done done - sed "/^CFLAGS=/s@=.*\$@=${CFLAGS}@" -i SP/Makefile.local || die + local makefile="SP/Makefile.local" + + sed "/^CFLAGS=/s@=.*\$@=${CFLAGS}@" -i ${makefile} || die use_switch client BUILD_CLIENT use_switch curl USE_CURL @@ -109,8 +125,8 @@ src_prepare(){ use_switch vorbis USE_CODEC_VORBIS use_switch voip USE_VOIP - use curl && echo "USE_CURL_DLOPEN=0" >> SP/Makefile.local - use openal && echo "USE_OPENAL_DLOPEN=0" >> SP/Makefile.local + use curl && echo "USE_CURL_DLOPEN=0" >> ${makefile} + use openal && echo "USE_OPENAL_DLOPEN=0" >> ${makefile} } src_compile() { @@ -136,6 +152,10 @@ src_install() { # || die #fi + # install pk3 files from the point release + insinto ${dir}/main + doins ${WORKDIR}/main/*.pk3 + doicon -s scalable misc/iortcw.svg make_desktop_entry rtcwsp "Return to Castle Wolfenstein (SP)" iortcw prepgamesdirs @@ -143,8 +163,8 @@ src_install() { pkg_postinst() { games_pkg_postinst - elog "You need to copy pak0.pk3, mp_pak0.pk3, mp_pak1.pk3, mp_pak2.pk3," - elog "sp_pak1.pk3 and sp_pak2.pk3 sp_pak3.pk3 sp_pak4.pk3 from a Window installation into ${dir}/main/" + elog "You need to copy pak0.pk3, mp_pak0.pk3 and sp_pak1.pk3 from a" + elog "Window installation or your install media into ${dir}/main/" elog elog "To play the game run:" elog " rtcwsp (single-player)" |