aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason E. Hale <jhale@FreeBSD.org>2022-11-19 21:21:52 +0000
committerJason E. Hale <jhale@FreeBSD.org>2022-11-22 01:35:55 +0000
commitc24ceaac2759f3a46b374cb0cc396be3d21e6727 (patch)
tree1af1d2d6301f683006f082517ddc43060ff27ed0
parent5dff5a43ffa87e78d5bfb4f5c460c9f0565864a0 (diff)
downloadports-c24ceaac2759f3a46b374cb0cc396be3d21e6727.tar.gz
ports-c24ceaac2759f3a46b374cb0cc396be3d21e6727.zip
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.
-rw-r--r--games/bass/Makefile25
-rw-r--r--games/bass/distinfo1
-rw-r--r--games/bass/files/bass.desktop.in28
-rw-r--r--games/bass/files/pkg-message.in17
-rw-r--r--games/bass/pkg-plist1
5 files changed, 43 insertions, 29 deletions
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: <<EOM
- Beneath a Steel Sky (bass) PORT NOTES ported by atrull
-
- How to Get Playing:
-
- i) Type scummvm to start the game interpreter
- ii) Click 'Add Game...', Browse to %%DATADIR%%
- iii) Click 'Choose' then click 'OK'
- iv) Select 'Beneath a Steel Sky' from the Menu and click 'Start'
-
- Have fun, Be Vigilant!
- - atrull
-EOM
-}
-]
diff --git a/games/bass/pkg-plist b/games/bass/pkg-plist
index fd04b04005e0..90300b0cacb8 100644
--- a/games/bass/pkg-plist
+++ b/games/bass/pkg-plist
@@ -1,3 +1,4 @@
+share/applications/bass.desktop
%%DATADIR%%/sky.cpt
%%DATADIR%%/sky.dnr
%%DATADIR%%/sky.dsk