aboutsummaryrefslogtreecommitdiff
path: root/games/duckstation/duckstation.SlackBuild
diff options
context:
space:
mode:
authorSteven Voges <svoges.sbo@gmail.com>2022-10-29 09:13:36 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-10-29 09:41:56 +0700
commit0c6b5a0164831d19e1e33351be6759621594660c (patch)
treee8b5e1c50c09b72ba44f8467fe1957c8986e52f7 /games/duckstation/duckstation.SlackBuild
parentded0850f3a9ebe7a38a747ed8421809be657c528 (diff)
games/duckstation: Updated for version 0.1.5836.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/duckstation/duckstation.SlackBuild')
-rw-r--r--games/duckstation/duckstation.SlackBuild19
1 files changed, 17 insertions, 2 deletions
diff --git a/games/duckstation/duckstation.SlackBuild b/games/duckstation/duckstation.SlackBuild
index 23eb54da603b..cfee228483ed 100644
--- a/games/duckstation/duckstation.SlackBuild
+++ b/games/duckstation/duckstation.SlackBuild
@@ -25,8 +25,11 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=duckstation
-VERSION=${VERSION:-20220824_bfafa95}
-SRCVER=${SRCVER:-bfafa95f65e42c315f67a53bce4ade02ae0def9d}
+VERSION=${VERSION:-0.1.5836}
+SRCDATE=${SRCDATE:-20221022}
+SRCVER=${SRCVER:-6f709468601183083b8581d4952aaba7baf77084}
+COMMIT=$(echo $SRCVER | cut -c -7)
+DISCORD=${DISCORD:-OFF}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -70,6 +73,16 @@ cd $TMP
rm -rf $PRGNAM-$SRCVER
tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
cd $PRGNAM-$SRCVER
+
+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 play-store-release | 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
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -85,6 +98,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