summaryrefslogtreecommitdiff
path: root/games/duckstation/duckstation.SlackBuild
diff options
context:
space:
mode:
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 23eb54da60..cfee228483 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