diff options
author | Steven Voges <svoges.sbo@gmail.com> | 2022-10-29 09:13:36 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-10-29 09:41:56 +0700 |
commit | 0c6b5a0164831d19e1e33351be6759621594660c (patch) | |
tree | e8b5e1c50c09b72ba44f8467fe1957c8986e52f7 /games | |
parent | ded0850f3a9ebe7a38a747ed8421809be657c528 (diff) | |
download | slackbuilds-0c6b5a0164831d19e1e33351be6759621594660c.tar.gz |
games/duckstation: Updated for version 0.1.5836.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/duckstation/README | 3 | ||||
-rw-r--r-- | games/duckstation/duckstation.SlackBuild | 19 | ||||
-rw-r--r-- | games/duckstation/duckstation.desktop | 3 | ||||
-rw-r--r-- | games/duckstation/duckstation.info | 6 |
4 files changed, 25 insertions, 6 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..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 diff --git a/games/duckstation/duckstation.desktop b/games/duckstation/duckstation.desktop index 2b9ce01e73..17d68666d9 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=Games; diff --git a/games/duckstation/duckstation.info b/games/duckstation/duckstation.info index 174287cb2a..1bb8e817eb 100644 --- a/games/duckstation/duckstation.info +++ b/games/duckstation/duckstation.info @@ -1,10 +1,10 @@ PRGNAM="duckstation" -VERSION="20220824_bfafa95" +VERSION="0.1.5836" 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/6f709468601183083b8581d4952aaba7baf77084/duckstation-6f709468601183083b8581d4952aaba7baf77084.tar.gz" +MD5SUM_x86_64="54b53a134cff399926435941f69c6b18" REQUIRES="qt6" MAINTAINER="Steven Voges" EMAIL="svoges.sbo@gmail.com" |