From c24ceaac2759f3a46b374cb0cc396be3d21e6727 Mon Sep 17 00:00:00 2001 From: "Jason E. Hale" Date: Sat, 19 Nov 2022 16:21:52 -0500 Subject: [PATCH] games/bass: Add desktop entry; cleanup Update MASTER_SITES; distfile was un-fetchable. Give LICENSE a better name and description. Extract and format only the relevant part from readme.txt and install that as LICENSE_FILE. Remove pkg-message.in which just reiterated the instructions already stated in readme.txt. A desktop entry has been added to facilitate launching the game and to support the locales for which the game has subtitles. --- games/bass/Makefile | 25 +++++++++++++------------ games/bass/distinfo | 1 + games/bass/files/bass.desktop.in | 28 ++++++++++++++++++++++++++++ games/bass/files/pkg-message.in | 17 ----------------- games/bass/pkg-plist | 1 + 5 files changed, 43 insertions(+), 29 deletions(-) create mode 100644 games/bass/files/bass.desktop.in delete mode 100644 games/bass/files/pkg-message.in diff --git a/games/bass/Makefile b/games/bass/Makefile index dd4ff79cdce0..e721fff2c2dc 100644 --- a/games/bass/Makefile +++ b/games/bass/Makefile @@ -1,39 +1,40 @@ PORTNAME= bass PORTVERSION= 1.2 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games -MASTER_SITES= http://de2.eu.scummvm.net/extras/Beneath%20a%20Steel%20Sky/ \ - http://de1.eu.scummvm.net/extras/Beneath%20a%20Steel%20Sky/ \ - http://at1.eu.scummvm.net/extras/Beneath%20a%20Steel%20Sky/ \ - http://lt1.eu.scummvm.net/extras/Beneath%20a%20Steel%20Sky/ +MASTER_SITES= SF/scummvm/extras/Beneath%20a%20Steel%20Sky/ \ + https://downloads.scummvm.org/frs/extras/Beneath%20a%20Steel%20Sky/ DISTNAME= bass-cd-1.2 MAINTAINER= jhale@FreeBSD.org COMMENT= Beneath a Steel Sky: a post-apocalyptic futuristic graphical adventure -WWW= https://www.scummvm.org/games/ #sky +WWW= https://www.scummvm.org/games/ #games-sky -LICENSE= unknown -LICENSE_NAME= no name -LICENSE_FILE= ${WRKSRC}/readme.txt +LICENSE= BASS +LICENSE_NAME= Beneath a Steel Sky License +LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept RUN_DEPENDS= scummvm:games/scummvm -USES= zip +USES= desktop-file-utils zip NO_BUILD= yes NO_ARCH= yes -WRKSRC= ${WRKDIR}/${DISTNAME} -SUB_FILES= pkg-message +SUB_FILES= bass.desktop OPTIONS_DEFINE= DOCS +post-extract: + @${TAIL} -n +86 ${WRKSRC}/readme.txt | ${SED} -e '1G;9G' | ${FMT} -p > ${WRKSRC}/LICENSE + do-install: @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/sky.dnr ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/sky.dsk ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/sky.cpt ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKDIR}/bass.desktop ${STAGEDIR}${PREFIX}/share/applications do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} diff --git a/games/bass/distinfo b/games/bass/distinfo index c067aa2f2695..fa81974fa80d 100644 --- a/games/bass/distinfo +++ b/games/bass/distinfo @@ -1,2 +1,3 @@ +TIMESTAMP = 1668891204 SHA256 (bass-cd-1.2.zip) = 53209b9400eab6fd7fa71518b2f357c8de75cfeaa5ba57024575ab79cc974593 SIZE (bass-cd-1.2.zip) = 69377781 diff --git a/games/bass/files/bass.desktop.in b/games/bass/files/bass.desktop.in new file mode 100644 index 000000000000..0348e6763b2a --- /dev/null +++ b/games/bass/files/bass.desktop.in @@ -0,0 +1,28 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=Beneath a Steel Sky +GenericName=Adventure game +GenericName[de]=Abenteuerspiel +GenericName[es]=Videojuego de aventura +GenericName[fr]=Jeu vidéo d'aventure +GenericName[it]=Avventura grafica +GenericName[pt]=Jogo de aventura +GenericName[sv]=Äventyrsspel +Comment=Be vigilant! +Comment[de]=Sei wachsam! +Comment[es]=¡Estar atentos! +Comment[fr]=Soyez vigilants! +Comment[it]=Siate vigilanti! +Comment[pt]=Seja vigilante! +Comment[sv]=Var vaksam! +Icon=scummvm.png +Exec=%%LOCALBASE%%/bin/scummvm -f -p %%DATADIR%% sky +Exec[de]=%%LOCALBASE%%/bin/scummvm -f -n -p %%DATADIR%% --language=de sky +Exec[es]=%%LOCALBASE%%/bin/scummvm -f -n -p %%DATADIR%% --language=es sky +Exec[fr]=%%LOCALBASE%%/bin/scummvm -f -n -p %%DATADIR%% --language=fr sky +Exec[it]=%%LOCALBASE%%/bin/scummvm -f -n -p %%DATADIR%% --language=it sky +Exec[pt]=%%LOCALBASE%%/bin/scummvm -f -n -p %%DATADIR%% --language=br sky +Exec[sv]=%%LOCALBASE%%/bin/scummvm -f -n -p %%DATADIR%% --language=se sky +Categories=Game;AdventureGame; +StartupNotify=false diff --git a/games/bass/files/pkg-message.in b/games/bass/files/pkg-message.in deleted file mode 100644 index db0d18c0bf93..000000000000 --- a/games/bass/files/pkg-message.in +++ /dev/null @@ -1,17 +0,0 @@ -[ -{ type: install - message: <