logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 078d6f936542719569d910f1bddcf19dc466e51c
parent f8b60253a30bbd814b38b073b325bf4e346a20df
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 11 Dec 2023 21:09:48 +0100

games-fps/iortcw: new package, add 1.51c

Diffstat:

Agames-fps/iortcw/Manifest2++
Agames-fps/iortcw/iortcw-1.51c.ebuild76++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 78 insertions(+), 0 deletions(-)

diff --git a/games-fps/iortcw/Manifest b/games-fps/iortcw/Manifest @@ -0,0 +1,2 @@ +DIST iortcw-1.51c.tar.gz 27246236 BLAKE2B a587b41ba8a59c110bbd16638af0b86e58bc1f90a7bd05c046383256781896d1e7cc163728b579421c4afd82f3e7e7fa7b104acd6900fb7cb28d0c1f3a9bc2ff SHA512 bed985e00ba117bfe8c5fae20671575af2fa1c2eeaaba9ef69e6b82485d883084138f7f949299cfdad8171b40209d9baf111879acfd01e5eae16859b63ce77c6 +DIST patch-data-141.zip 79421754 BLAKE2B 5de3b2e120a00f1b2269fe92bb2eb6777f9a4c48567d7d79c79da81c79bcf282571492d2486dd1bee2a7d1e84f437f8f241e2490e71d0e56f7461ef92b45025e SHA512 5bdf064675489c5050640ec2a9b16634ac34b9f3d283817882ac85ce45ceebb193d22d629f850faa7435c5348a816a10b13b46eb8590ff8a81fdf918b348e49a diff --git a/games-fps/iortcw/iortcw-1.51c.ebuild b/games-fps/iortcw/iortcw-1.51c.ebuild @@ -0,0 +1,76 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit xdg-utils + +DESCRIPTION="Return to Castle Wolfenstein with ioquake3 improvements" +HOMEPAGE="https://github.com/iortcw/iortcw/" +SRC_URI=" + https://github.com/iortcw/iortcw/archive/${PV}.tar.gz -> ${P}.tar.gz + https://github.com/iortcw/iortcw/releases/download/${PV}/patch-data-141.zip +" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + virtual/opengl + media-libs/libsdl2 + games-fps/rtcw-data-gog +" +RDEPEND="${DEPEND}" + +my_make() { + emake \ + ARCH="$(uname -m)" \ + USE_INTERNAL_LIBS=0 \ + USE_OPENAL_DLOPEN=0 \ + USE_CURL_DLOPEN=0 \ + FULLBINEXT='' \ + SHLIBNAME='.so' \ + CLIENTBIN="${PN}-sp" \ + SERVERBIN="${PN}-mp" \ + TOOLS_CC="${CC}" \ + "$@" +} + +src_prepare() { + default + + # remove blobs + rm -r SP/code/libs MP/code/libs || die + + sed -i \ + -e 's;BR=.*;BR=$(BUILD_DIR)/release;' \ + -e 's;COPYDIR=.*;COPYDIR="/usr/share/wolf";' \ + MP/Makefile SP/Makefile || die +} + +src_compile() { + # singleplayer client + my_make -C SP + # multiplayer client + dedicated server + my_make -C MP +} + +src_install() { + pushd SP/build/release || die + dobin ${PN}-sp + dolib \ + renderer_sp_opengl1.so renderer_sp_rend2.so \ + main/cgame.mp.so main/qagame.sp.so main/ui.sp.so + popd || die + + dobin MP/build/release/${PN}-mp +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +}