diff options
Diffstat (limited to 'games/duckstation')
-rw-r--r-- | games/duckstation/README | 3 | ||||
-rw-r--r-- | games/duckstation/duckstation.SlackBuild | 28 | ||||
-rw-r--r-- | games/duckstation/duckstation.desktop | 3 | ||||
-rw-r--r-- | games/duckstation/duckstation.info | 6 |
4 files changed, 33 insertions, 7 deletions
diff --git a/games/duckstation/README b/games/duckstation/README index 73834fbbab..2dcc2c1b9c 100644 --- a/games/duckstation/README +++ b/games/duckstation/README @@ -11,3 +11,6 @@ although mismatching game regions and BIOS regions may have compatibility issues. A ROM image is not provided with the emulator for legal reasons, you should dump this from your own console using Caetla or other means. + +Discord Rich Presence is disabled by default, to enable Discord +functionality, pass DISCORD=ON to the build script. diff --git a/games/duckstation/duckstation.SlackBuild b/games/duckstation/duckstation.SlackBuild index 23eb54da60..fc9d8163bd 100644 --- a/games/duckstation/duckstation.SlackBuild +++ b/games/duckstation/duckstation.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for duckstation -# Copyright 2022 Steven Voges <Oregon, USA> +# Copyright 2022-2023 Steven Voges <Oregon, USA> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,8 +25,11 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=duckstation -VERSION=${VERSION:-20220824_bfafa95} -SRCVER=${SRCVER:-bfafa95f65e42c315f67a53bce4ade02ae0def9d} +VERSION=${VERSION:-0.1.6217} +SRCDATE=${SRCDATE:-20230901} +SRCVER=${SRCVER:-d690732c7d553ab1dc1a8e59889c788d7397ec9d} +COMMIT=$(echo $SRCVER | cut -c -7) +DISCORD=${DISCORD:-OFF} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -70,6 +73,23 @@ cd $TMP rm -rf $PRGNAM-$SRCVER tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz cd $PRGNAM-$SRCVER + +# Fix version since we are not using a git repo. +sed -i "s/HASH=\$(git rev-parse HEAD)/HASH=${SRCVER}/g" \ + src/scmversion/gen_scmversion.sh +sed -i "s/BRANCH=\$(git rev-parse --abbrev-ref HEAD | tr -d '\\\r\\\n')/BRANCH=master/g" \ + src/scmversion/gen_scmversion.sh +sed -i "s/TAG=\$(git describe --tags --dirty --exclude latest --exclude preview --exclude legacy --exclude previous-latest | tr -d '\\\r\\\n')/TAG=${VERSION}-${COMMIT}/g" \ + src/scmversion/gen_scmversion.sh +sed -i "s/DATE=\$(git log -1 --date=iso8601-strict --format=%cd)/DATE=${SRCDATE}/g" \ + src/scmversion/gen_scmversion.sh +# Fix broken compile when discord is disabled +if [ $DISCORD = "OFF" ]; then + sed -i "3726d;3727d;3728d;3729d;3730d;3731d;3732d;3733d" src/core/system.cpp +fi +# Fix compilation on Current/GCC13 +sed -i "8i #include <cstdint>" dep/reshadefx/include/effect_token.hpp + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -85,6 +105,8 @@ cd build -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_LIBDIR=./lib${LIBDIRSUFFIX} \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_DISCORD_PRESENCE=$DISCORD \ + -DUSE_WAYLAND=ON \ -DCMAKE_BUILD_TYPE=Release .. make make install/strip DESTDIR=$PKG diff --git a/games/duckstation/duckstation.desktop b/games/duckstation/duckstation.desktop index 2b9ce01e73..29a5d8c31f 100644 --- a/games/duckstation/duckstation.desktop +++ b/games/duckstation/duckstation.desktop @@ -1,6 +1,7 @@ [Desktop Entry] -Type=Application Name=duckstation Comment=Fast PlayStation 1 emulator Exec=duckstation-qt %f Icon=duckstation +Type=Application +Categories=Game; diff --git a/games/duckstation/duckstation.info b/games/duckstation/duckstation.info index 174287cb2a..72e6636bac 100644 --- a/games/duckstation/duckstation.info +++ b/games/duckstation/duckstation.info @@ -1,10 +1,10 @@ PRGNAM="duckstation" -VERSION="20220824_bfafa95" +VERSION="0.1.6217" HOMEPAGE="https://duckstation.org" DOWNLOAD="UNSUPPORTED" MD5SUM="" -DOWNLOAD_x86_64="https://github.com/stenzek/duckstation/archive/bfafa95f65e42c315f67a53bce4ade02ae0def9d/duckstation-bfafa95f65e42c315f67a53bce4ade02ae0def9d.tar.gz" -MD5SUM_x86_64="5e814856b16556b685e13bb98142199b" +DOWNLOAD_x86_64="https://github.com/stenzek/duckstation/archive/d690732c7d553ab1dc1a8e59889c788d7397ec9d/duckstation-d690732c7d553ab1dc1a8e59889c788d7397ec9d.tar.gz" +MD5SUM_x86_64="33f5642022a7c578c8703e0e0071ee82" REQUIRES="qt6" MAINTAINER="Steven Voges" EMAIL="svoges.sbo@gmail.com" |