git: 9c3ee2af88f2 - main - games/trx: Update to 1.11.1

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Thu, 24 Sep 2026 19:47:13 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9c3ee2af88f27d4e66372454085a756f461c51c6

commit 9c3ee2af88f27d4e66372454085a756f461c51c6
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2026-09-24 19:02:56 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2026-09-24 19:47:01 +0000

    games/trx: Update to 1.11.1
    
    Install the engine data tree under DATADIR and point the wrapper at it
    with TRX_DIR, added upstream in this release.  Previously the port
    installed only the binary and the user had to populate scripts/ and
    modules/ by hand.
    
    ChangeLog:      https://github.com/LostArtefacts/TRX/releases/tag/trx-1.11.1
                    https://github.com/LostArtefacts/TRX/releases/tag/trx-1.11
---
 games/trx/Makefile        | 6 +++++-
 games/trx/distinfo        | 6 +++---
 games/trx/files/trx.sh.in | 2 ++
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/games/trx/Makefile b/games/trx/Makefile
index 338dca4e5907..9ba1da2b5908 100644
--- a/games/trx/Makefile
+++ b/games/trx/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	TRX
 DISTVERSIONPREFIX=	trx-
-DISTVERSION=	1.10.2
+DISTVERSION=	1.11.1
 CATEGORIES=	games
 
 MAINTAINER=	eduardo@FreeBSD.org
@@ -32,9 +32,13 @@ WRKSRC_SUBDIR=	src
 
 PLIST_FILES=	bin/${PORTNAME} \
 		bin/${PORTNAME}.bin
+PORTDATA=	cfg games modules scripts
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/_build/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}.bin
 	${INSTALL_SCRIPT} ${WRKDIR}/trx.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	@cd ${WRKSRC}/../data/trx/ship && \
+		${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR}
 
 .include <bsd.port.mk>
diff --git a/games/trx/distinfo b/games/trx/distinfo
index 0ed6c27e4e80..3dc6e5fe1622 100644
--- a/games/trx/distinfo
+++ b/games/trx/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1787335555
-SHA256 (LostArtefacts-TRX-trx-1.10.2_GH0.tar.gz) = d4e455dc6862b5ae7fe65c3ce6febb825cddecc0e0488c62cd0b41258ff53565
-SIZE (LostArtefacts-TRX-trx-1.10.2_GH0.tar.gz) = 28860473
+TIMESTAMP = 1790270401
+SHA256 (LostArtefacts-TRX-trx-1.11.1_GH0.tar.gz) = 50eda3ba31de8406883d647a750b5afc7bca4ad2acb9c968472b12657362dee5
+SIZE (LostArtefacts-TRX-trx-1.11.1_GH0.tar.gz) = 29910288
diff --git a/games/trx/files/trx.sh.in b/games/trx/files/trx.sh.in
index 5af17f76e9a1..0d0dca6769ae 100644
--- a/games/trx/files/trx.sh.in
+++ b/games/trx/files/trx.sh.in
@@ -1,6 +1,8 @@
 #!/bin/sh
 : ${TRX_BASE:="${HOME}/.local/share/%%PORTNAME%%"}
 
+export TRX_DIR="%%DATADIR%%"
+
 export TRX_CONFIG_DIR="${TRX_BASE}/cfg"
 export TRX_CACHE_DIR="${TRX_BASE}/cache"
 export TRX_GAMES_DIR="${TRX_BASE}/games"