public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-fps/serioussam-tfe-data/
@ 2023-12-26 22:50 Ulrich Müller
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Müller @ 2023-12-26 22:50 UTC (permalink / raw
  To: gentoo-commits

commit:     f55cca15abceece466b1f4333774be0e4e55af82
Author:     Alexander Pavlov <t.x00100x.t <AT> yandex <DOT> ru>
AuthorDate: Fri Dec  8 12:59:39 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Dec 26 22:49:27 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f55cca15

games-fps/serioussam-tfe-data: new package, add 1.5-r1

Bug: https://bugs.gentoo.org/854567
Signed-off-by: Alexander Pavlov <t.x00100x.t <AT> yandex.ru>
[Rename patch. Use ED instead of D.]
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 games-fps/serioussam-tfe-data/Manifest             |  1 +
 games-fps/serioussam-tfe-data/metadata.xml         | 15 +++++
 .../serioussam-tfe-data-1.5-r1.ebuild              | 70 ++++++++++++++++++++++
 3 files changed, 86 insertions(+)

diff --git a/games-fps/serioussam-tfe-data/Manifest b/games-fps/serioussam-tfe-data/Manifest
new file mode 100644
index 000000000000..925e2ce7d7a8
--- /dev/null
+++ b/games-fps/serioussam-tfe-data/Manifest
@@ -0,0 +1 @@
+DIST serioussam-Patch_1.05_FE.tar.xz 1221836 BLAKE2B 0ae7103151ee42f3c1ff88afd2d77037e0c3e5c49c19adf213068f87eed524c7aa6552d020c3337f5457847f167c1a2e4ca1fda7572e96b9630fb2dbfd3e6b0f SHA512 18c5a5f66e1fbe3864eca3274d20e525f50c223507e0c1c793a642aed66edfeb723cf3d4ffc583afa4d9a10388cbed14af7035bf6a1b9c214dac79c5eb1d2548

diff --git a/games-fps/serioussam-tfe-data/metadata.xml b/games-fps/serioussam-tfe-data/metadata.xml
new file mode 100644
index 000000000000..e76bc72b6a01
--- /dev/null
+++ b/games-fps/serioussam-tfe-data/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person" proxied="yes">
+		<email>t.x00100x.t@yandex.ru</email>
+		<name>Alexander Pavlov</name>
+	</maintainer>
+	<maintainer type="project" proxied="proxy">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">tx00100xt/serioussam-mods</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/games-fps/serioussam-tfe-data/serioussam-tfe-data-1.5-r1.ebuild b/games-fps/serioussam-tfe-data/serioussam-tfe-data-1.5-r1.ebuild
new file mode 100644
index 000000000000..3407e74c8e3b
--- /dev/null
+++ b/games-fps/serioussam-tfe-data/serioussam-tfe-data-1.5-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cdrom unpacker
+
+PATCH_PREFIX="Patch_1.05_FE"
+# Game name
+GN="serioussam"
+
+DESCRIPTION="Croteam's Serious Sam Classic The First Encounter ... the data files"
+HOMEPAGE="https://www.croteam.com/
+	https://store.steampowered.com/app/41050/Serious_Sam_Classic_The_First_Encounter/"
+SRC_URI="https://github.com/tx00100xt/serioussam-mods/raw/main/Patches/${PATCH_PREFIX}.tar.xz -> ${GN}-${PATCH_PREFIX}.tar.xz"
+S="${WORKDIR}"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="bindist"
+
+pkg_setup() {
+	cdrom_get_cds "Install/1_00_music.gro"
+}
+
+src_unpack() {
+	mkdir Levels Mods || die "failed create dirs"
+	cat "${DISTDIR}/${GN}-${PATCH_PREFIX}.tar.xz" > "${PATCH_PREFIX}.tar.xz" \
+		|| die "failed to copy patch 1.05"
+	unpack "${WORKDIR}/${PATCH_PREFIX}.tar.xz"
+}
+
+src_install() {
+	local dir="/usr/share/${GN}"
+
+	einfo "Copying from ${CDROM_ROOT}"
+	insinto "${dir}"
+	doins -r "${CDROM_ROOT}"/Install/*
+
+	mv "${WORKDIR}"/*.gro "${ED}${dir}" || die "failed to moved patch 1.05"
+	mv "${ED}${dir}"/Scripts/PersistentSymbols.ini "${WORKDIR}" \
+		|| die "failed to moved PersistentSymbols.ini"
+
+	rm -rf \
+		"${ED}${dir}"/{Bin,Controls,Data,Demos,Mods,Players,Scripts} \
+		|| die "failed to remove directories"
+	rm -rf \
+		"${ED}${dir}"/{VirtualTrees,Locales,Help/ShellSymbols.txt} \
+		|| die "failed to remove directories"
+	mkdir "${ED}${dir}/Scripts" || die "failed create Scripts dir"
+	mv "${WORKDIR}"/PersistentSymbols.ini "${ED}${dir}/Scripts" \
+		|| die "failed to moved PersistentSymbols.ini"
+
+	# Remove useless Windows files
+	rm -f "${ED}${dir}"/{*.exe,*.ex_,*.bmp,*.inx,*.hdr,*.bin,*.cab,*.ini,*.log} \
+		|| die "Failed to remove windows cruft"
+
+	# Ensure that file datestamps from the CD are sane
+	find "${ED}${dir}"/Levels -exec touch -d '09 May 2020 14:00' '{}' \; \
+		|| die "touch failed"
+}
+
+pkg_postinst() {
+	elog "Important information about the Linux port is at:"
+	elog "  https://github.com/tx00100xt/SeriousSamClassic-VK"
+	elog "    look at:"
+	elog "  https://github.com/tx00100xt/SeriousSamClassic-VK/wiki"
+	elog "   For information about of the game"
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-fps/serioussam-tfe-data/
@ 2023-12-26 23:25 Ulrich Müller
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Müller @ 2023-12-26 23:25 UTC (permalink / raw
  To: gentoo-commits

commit:     09112628fac7707c3471553282bc30c1dcbd571f
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 26 23:23:36 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Dec 26 23:24:37 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09112628

games-fps/serioussam-tfe-data: update SRC_URI

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 games-fps/serioussam-tfe-data/Manifest                          | 2 +-
 games-fps/serioussam-tfe-data/serioussam-tfe-data-1.5-r1.ebuild | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/games-fps/serioussam-tfe-data/Manifest b/games-fps/serioussam-tfe-data/Manifest
index 925e2ce7d7a8..be0fb14292c0 100644
--- a/games-fps/serioussam-tfe-data/Manifest
+++ b/games-fps/serioussam-tfe-data/Manifest
@@ -1 +1 @@
-DIST serioussam-Patch_1.05_FE.tar.xz 1221836 BLAKE2B 0ae7103151ee42f3c1ff88afd2d77037e0c3e5c49c19adf213068f87eed524c7aa6552d020c3337f5457847f167c1a2e4ca1fda7572e96b9630fb2dbfd3e6b0f SHA512 18c5a5f66e1fbe3864eca3274d20e525f50c223507e0c1c793a642aed66edfeb723cf3d4ffc583afa4d9a10388cbed14af7035bf6a1b9c214dac79c5eb1d2548
+DIST serioussamfe-patch_1.05_FE.tar.xz 1221836 BLAKE2B 0ae7103151ee42f3c1ff88afd2d77037e0c3e5c49c19adf213068f87eed524c7aa6552d020c3337f5457847f167c1a2e4ca1fda7572e96b9630fb2dbfd3e6b0f SHA512 18c5a5f66e1fbe3864eca3274d20e525f50c223507e0c1c793a642aed66edfeb723cf3d4ffc583afa4d9a10388cbed14af7035bf6a1b9c214dac79c5eb1d2548

diff --git a/games-fps/serioussam-tfe-data/serioussam-tfe-data-1.5-r1.ebuild b/games-fps/serioussam-tfe-data/serioussam-tfe-data-1.5-r1.ebuild
index 3407e74c8e3b..8b0b3f73ea37 100644
--- a/games-fps/serioussam-tfe-data/serioussam-tfe-data-1.5-r1.ebuild
+++ b/games-fps/serioussam-tfe-data/serioussam-tfe-data-1.5-r1.ebuild
@@ -5,14 +5,14 @@ EAPI=8
 
 inherit cdrom unpacker
 
-PATCH_PREFIX="Patch_1.05_FE"
 # Game name
 GN="serioussam"
+PATCH_PREFIX="${GN}fe-patch_1.05_FE"
 
 DESCRIPTION="Croteam's Serious Sam Classic The First Encounter ... the data files"
 HOMEPAGE="https://www.croteam.com/
 	https://store.steampowered.com/app/41050/Serious_Sam_Classic_The_First_Encounter/"
-SRC_URI="https://github.com/tx00100xt/serioussam-mods/raw/main/Patches/${PATCH_PREFIX}.tar.xz -> ${GN}-${PATCH_PREFIX}.tar.xz"
+SRC_URI="https://github.com/tx00100xt/serioussam-mods/raw/main/Patches/${PATCH_PREFIX}.tar.xz"
 S="${WORKDIR}"
 
 LICENSE="all-rights-reserved"
@@ -26,7 +26,7 @@ pkg_setup() {
 
 src_unpack() {
 	mkdir Levels Mods || die "failed create dirs"
-	cat "${DISTDIR}/${GN}-${PATCH_PREFIX}.tar.xz" > "${PATCH_PREFIX}.tar.xz" \
+	cat "${DISTDIR}/${PATCH_PREFIX}.tar.xz" > "${PATCH_PREFIX}.tar.xz" \
 		|| die "failed to copy patch 1.05"
 	unpack "${WORKDIR}/${PATCH_PREFIX}.tar.xz"
 }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-26 23:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-26 23:25 [gentoo-commits] repo/gentoo:master commit in: games-fps/serioussam-tfe-data/ Ulrich Müller
  -- strict thread matches above, loose matches on Subject: below --
2023-12-26 22:50 Ulrich Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox