aboutsummaryrefslogtreecommitdiff
path: root/games/duckstation/duckstation.SlackBuild
diff options
context:
space:
mode:
authorSteven Voges <svoges.sbo@gmail.com>2023-09-01 21:38:48 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-09-02 18:02:33 +0700
commitc20e23013d66ff516f27c3ae2006ff30e19bc864 (patch)
tree84fc4654591eccd869b3f21bc0d9261e64ee952c /games/duckstation/duckstation.SlackBuild
parentb00aac8a3a491d8ee4fe01c87225828998c13856 (diff)
games/duckstation: Updated for version 0.1.6217.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/duckstation/duckstation.SlackBuild')
-rw-r--r--games/duckstation/duckstation.SlackBuild15
1 files changed, 11 insertions, 4 deletions
diff --git a/games/duckstation/duckstation.SlackBuild b/games/duckstation/duckstation.SlackBuild
index a37f732caa33..fc9d8163bde3 100644
--- a/games/duckstation/duckstation.SlackBuild
+++ b/games/duckstation/duckstation.SlackBuild
@@ -25,9 +25,9 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=duckstation
-VERSION=${VERSION:-0.1.6051}
-SRCDATE=${SRCDATE:-20230316}
-SRCVER=${SRCVER:-3bbce19df29ccabd26aef7d8afa09ec63df98ccf}
+VERSION=${VERSION:-0.1.6217}
+SRCDATE=${SRCDATE:-20230901}
+SRCVER=${SRCVER:-d690732c7d553ab1dc1a8e59889c788d7397ec9d}
COMMIT=$(echo $SRCVER | cut -c -7)
DISCORD=${DISCORD:-OFF}
BUILD=${BUILD:-1}
@@ -74,14 +74,21 @@ 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 play-store-release | tr -d '\\\r\\\n')/TAG=${VERSION}.${COMMIT}/g" \
+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 . \