diff options
author | 2021-08-21 22:42:28 +0100 | |
---|---|---|
committer | 2021-08-23 05:05:46 +0100 | |
commit | 15f57d15bd70ffc6783b67513c475caaf797d26a (patch) | |
tree | dbf1cb5747dba682806290c640bc5cbe8e8c69a5 /games-fps/etqw-demo/etqw-demo-2.0_p1-r4.ebuild | |
parent | games-fps/etqw-bin: use non-relative wrapper path (diff) | |
download | gentoo-15f57d15bd70ffc6783b67513c475caaf797d26a.tar.gz gentoo-15f57d15bd70ffc6783b67513c475caaf797d26a.tar.bz2 gentoo-15f57d15bd70ffc6783b67513c475caaf797d26a.zip |
games-fps/etqw-demo: use non-relative wrapper path
Bug: https://bugs.gentoo.org/809356
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-fps/etqw-demo/etqw-demo-2.0_p1-r4.ebuild')
-rw-r--r-- | games-fps/etqw-demo/etqw-demo-2.0_p1-r4.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/games-fps/etqw-demo/etqw-demo-2.0_p1-r4.ebuild b/games-fps/etqw-demo/etqw-demo-2.0_p1-r4.ebuild new file mode 100644 index 000000000000..9b412a633907 --- /dev/null +++ b/games-fps/etqw-demo/etqw-demo-2.0_p1-r4.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop unpacker wrapper + +MY_MAJOR=$(ver_cut 1) +MY_REV=$(ver_cut 3-) +MY_BODY="ETQW-demo${MY_MAJOR}-client-full.r${MY_REV/p/}.x86" + +DESCRIPTION="Enemy Territory: Quake Wars demo" +HOMEPAGE="http://zerowing.idsoftware.com/linux/etqw/" +SRC_URI="mirror://idsoftware/etqw/${MY_BODY}.run" +S="${WORKDIR}" + +# See copyrights.txt +LICENSE="ETQW" +SLOT="0" +KEYWORDS="~amd64 ~x86" +RESTRICT="bindist strip mirror" + +RDEPEND=" + >=media-libs/libsdl-1.2.15-r4[video,sound,opengl,abi_x86_32(-)] + sys-libs/ncurses-compat[abi_x86_32(-)] + >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)] + virtual/jpeg-compat:62[abi_x86_32(-)] + >=x11-libs/libX11-1.6.2[abi_x86_32(-)] + >=x11-libs/libXext-1.3.2[abi_x86_32(-)] +" + +BDEPEND="app-arch/unzip" + +dir=/opt/${PN} + +QA_PREBUILT=" + ${dir#/}/guis/libmojosetupgui_ncurses.so + ${dir#/}/data/* + ${dir#/}/data/pb/*.so +" + +src_unpack() { + # exit status of 1 should just be warnings, not corrupt archive + unpack_zip ${A} +} + +src_install() { + insinto "${dir}" + doins -r guis scripts + + cd data || die + insinto "${dir}"/data + doins -r base pb etqw_icon.png + dodoc README.txt EULA.txt copyrights.txt etqwtv.txt + + exeinto "${dir}"/data + doexe etqw *\.x86 etqw-* libCgx86* libSDL* *.sh + + make_wrapper ${PN} ./etqw.x86 "${dir}"/data "${dir}"/data + # Matches with desktop entry for enemy-territory-truecombat + make_desktop_entry ${PN} "Enemy Territory - Quake Wars (Demo)" + + make_wrapper ${PN}-ded ./etqwded.x86 "${dir}"/data "${dir}"/data +} |