From 4e0cd392943965179d773796fe4ceeae3a360bb3 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 20 Feb 2022 14:57:59 -0500 Subject: games/ggmud: Updated for version 0.9.4. Signed-off-by: B. Watson --- games/ggmud/ggmud-wrapper.sh | 8 ++++++++ games/ggmud/ggmud.SlackBuild | 37 ++++++++++++++++++++++--------------- games/ggmud/ggmud.desktop | 4 ++-- games/ggmud/ggmud.info | 6 +++--- 4 files changed, 35 insertions(+), 20 deletions(-) create mode 100644 games/ggmud/ggmud-wrapper.sh diff --git a/games/ggmud/ggmud-wrapper.sh b/games/ggmud/ggmud-wrapper.sh new file mode 100644 index 0000000000..ab6a538d21 --- /dev/null +++ b/games/ggmud/ggmud-wrapper.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# wrapper script for ggmud, part of SlackBuilds.org ggmud build. +# written by B. Watson, licensed under the WTFPL. +# this script is needed because ggmud segfaults if it's started +# from anywhere but its install directory. + +cd @OPT@/ggmud && exec ./ggmud "$@" diff --git a/games/ggmud/ggmud.SlackBuild b/games/ggmud/ggmud.SlackBuild index 6750a1ce21..2f746f1b22 100644 --- a/games/ggmud/ggmud.SlackBuild +++ b/games/ggmud/ggmud.SlackBuild @@ -22,10 +22,22 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220220 bkw: Modified by SlackBuilds.org: +# - fix build on 15.0. +# - updated for v0.9.4. +# - add wrapper script. +# - don't install useless xpm files in /usr/share/pixmaps. +# - fix .desktop file. +# In case you're wondering why so many of the icons inside the app +# show up as the red X (meaning 'missing icon'), it's nothing to do +# with the removed .xpm files. I don't actually care what causes it +# right this minute. When submissions are open again, the maintainer +# can figure it out. Meanwhile, the application at least builds and runs. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ggmud -VERSION=${VERSION:-0.9.3} +VERSION=${VERSION:-0.9.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +50,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 @@ -74,19 +83,21 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xzvf $CWD/$PRGNAM-$VERSION-src.tgz +tar -xzvf $CWD/$PRGNAM-$VERSION-src.tgz || tar xvf $CWD/GGMud-src.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 \ + -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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ # Apply patch so everything will link correctly. #cp $CWD/ggmud-link.diff $TMP/$PRGNAM-$VERSION patch -p0 < $CWD/ggmud-link.diff +SLKCFLAGS+=" -fcommon" + mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ @@ -101,18 +112,14 @@ mkdir build && cd build # and to keep from cluttering up /usr/bin with non binaries. mkdir -p $PKG/$OPT/$PRGNAM cp $TMP/$PRGNAM-$VERSION/build/$PRGNAM $PKG/$OPT/$PRGNAM + strip $PKG/$OPT/$PRGNAM/$PRGNAM cp $TMP/$PRGNAM-$VERSION/gg_help.txt $PKG/$OPT/$PRGNAM cp $TMP/$PRGNAM-$VERSION/leu/* $PKG/$OPT/$PRGNAM cd - -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 - -( - mkdir -p $PKG/usr/bin - cd $PKG/usr/bin - ln -s /opt/ggmud/ggmud . -) +mkdir -p $PKG/usr/games +sed "s,@OPT@,$OPT,g" < $CWD/$PRGNAM-wrapper.sh > $PKG/usr/games/$PRGNAM +chmod 0755 $PKG/usr/games/$PRGNAM mkdir -p $PKG/usr/share/{applications,pixmaps} cp $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/ diff --git a/games/ggmud/ggmud.desktop b/games/ggmud/ggmud.desktop index 37a667610e..b31bccf7ec 100644 --- a/games/ggmud/ggmud.desktop +++ b/games/ggmud/ggmud.desktop @@ -1,10 +1,10 @@ [Desktop Entry] Comment=a MUD/MOO/MUSH terminal client Comment[fr_FR]=un terminal client de MUD/MOO/MUSH -Exec=ggmud +Exec=/usr/games/ggmud GenericName=MUD terminal client GenericName[fr_FR]=terminal client de MUD -Icon=ggmud +Icon=/usr/share/pixmaps/ggmud.png Name=ggmud StartupNotify=true Terminal=false diff --git a/games/ggmud/ggmud.info b/games/ggmud/ggmud.info index 908d40e5a7..033f3943a3 100644 --- a/games/ggmud/ggmud.info +++ b/games/ggmud/ggmud.info @@ -1,8 +1,8 @@ PRGNAM="ggmud" -VERSION="0.9.3" +VERSION="0.9.4" HOMEPAGE="http://www.ggsoft.org/ggmud/index.html" -DOWNLOAD="http://downloads.sourceforge.net/ggmud/ggmud-0.9.3-src.tgz" -MD5SUM="b07b984f2286ff76def2bdd6016eabb5" +DOWNLOAD="https://downloads.sourceforge.net/project/ggmud/ggmud/0.9.4/GGMud-src.tar.gz" +MD5SUM="653a1cb6177b1d0419ee50597540b9e0" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -- cgit v1.2.3