diff options
author | B. Watson <yalhcru@gmail.com> | 2021-11-03 00:13:45 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-12-04 10:08:54 +0700 |
commit | a1f5a814acb8546b24902f865780eb72392d7774 (patch) | |
tree | aeb45b9ac4b53a451a943ac580b0edb05405d727 | |
parent | b581a1a4da09dbd7528868935bf9fc1b048c6d41 (diff) | |
download | slackbuilds-a1f5a814acb8546b24902f865780eb72392d7774.tar.gz |
games/doomsday: New-style icons.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | games/doomsday/README | 10 | ||||
-rw-r--r-- | games/doomsday/doinst.sh | 6 | ||||
-rw-r--r-- | games/doomsday/doomsday.SlackBuild | 43 | ||||
-rw-r--r-- | games/doomsday/doomsday.info | 4 | ||||
-rw-r--r-- | games/doomsday/slack-desc | 2 |
5 files changed, 41 insertions, 24 deletions
diff --git a/games/doomsday/README b/games/doomsday/README index 9794cae7ee..7194930ef3 100644 --- a/games/doomsday/README +++ b/games/doomsday/README @@ -1,4 +1,6 @@ -A portable game engine for classic first person shooters such as -DOOM, Heretic and Hexen. Lets you enjoy the original games using -modern technology, including high-resolution OpenGL graphics, 3D -models, and dynamic lighting effects. +doomsday (portable game engine for Doom and related games) + +Doomsday is a portable game engine for classic first person shooters +such as DOOM, Heretic and Hexen. Lets you enjoy the original games +using modern technology, including high-resolution OpenGL graphics, +3D models, and dynamic lighting effects. diff --git a/games/doomsday/doinst.sh b/games/doomsday/doinst.sh index 5fb28930db..3e5691a052 100644 --- a/games/doomsday/doinst.sh +++ b/games/doomsday/doinst.sh @@ -1,3 +1,9 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/games/doomsday/doomsday.SlackBuild b/games/doomsday/doomsday.SlackBuild index e700db93a2..695d43211d 100644 --- a/games/doomsday/doomsday.SlackBuild +++ b/games/doomsday/doomsday.SlackBuild @@ -24,6 +24,11 @@ # Now maintained by B. Watson. +# 20211102 bkw: someone else updated this for v2.3.1 BUILD=1. +# - BUILD=2. +# - new-style icons. +# - binaries in /usr/games. + # 20170207 bkw: # - Take over maintenance, BUILD=2 # - Remove OpenAL and fmodapi from REQUIRES, since they are not @@ -48,7 +53,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=doomsday VERSION=${VERSION:-2.3.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -60,9 +65,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -95,11 +97,8 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ # build amethyst mkdir -p build-amethyst @@ -111,10 +110,9 @@ cd build-amethyst -DCMAKE_BUILD_TYPE=Release \ ../doomsday/tools/amethyst make - make install DESTDIR=$PKG + make install/strip DESTDIR=$PKG cd .. -# already provided by the assimp package mkdir -p build cd build cmake \ @@ -123,19 +121,30 @@ cd build -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release .. make - make install DESTDIR=$PKG + make install/strip DESTDIR=$PKG cd .. +mv $PKG/usr/bin $PKG/usr/games + +DESKDIR=$PKG/usr/share/applications +chmod -x $DESKDIR/* +sed -i -e 's,/bin/,/games/,g' \ + -e '/^Encoding/d' \ + $DESKDIR/* + +mkdir -p $PKG/usr/share/pixmaps +convert -resize 48x48 \ + $PKG/usr/share/icons/hicolor/256x256/apps/net.dengine.Doomsday.png \ + $PKG/usr/share/pixmaps/$PRGNAM.png + # already provided by the assimp package rm -fR $PKG/usr/include/assimp -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - # manually install man pages +rm -rf $PKG/usr/share/man mkdir -p $PKG/usr/man/man6 -for i in doomsday doomsday-server doomsday-shell-text; do - gzip -c9 doomsday/doc/$i.6 > $PKG/usr/man/man6/$i.6.gz +for i in doomsday/doc/*.6; do + gzip -9c < $i > $PKG/usr/man/man6/$( basename $i ).gz done mkdir -p $PKG/usr/doc diff --git a/games/doomsday/doomsday.info b/games/doomsday/doomsday.info index 033f20f5a4..83f881ace8 100644 --- a/games/doomsday/doomsday.info +++ b/games/doomsday/doomsday.info @@ -1,7 +1,7 @@ PRGNAM="doomsday" VERSION="2.3.1" -HOMEPAGE="http://dengine.net" -DOWNLOAD="http://downloads.sourceforge.net/deng/doomsday-2.3.1.tar.gz" +HOMEPAGE="https://dengine.net" +DOWNLOAD="https://downloads.sourceforge.net/deng/doomsday-2.3.1.tar.gz" MD5SUM="9ae2a3e053a6f11f37dfb450bb5e53cb" DOWNLOAD_x86_64="" MD5SUM_x86_64="" diff --git a/games/doomsday/slack-desc b/games/doomsday/slack-desc index 7654ade002..d047e7f13c 100644 --- a/games/doomsday/slack-desc +++ b/games/doomsday/slack-desc @@ -6,7 +6,7 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -doomsday: doomsday (portable game engine) +doomsday: doomsday (portable game engine for Doom and related games) doomsday: doomsday: A portable game engine for classic first person shooters such as doomsday: DOOM, Heretic and Hexen. Lets you enjoy the original games using |