Package Details: duckstation-git 0.1.r8839.gb798d8f1a-1

Git Clone URL: https://aur.archlinux.org/duckstation-git.git (read-only, click to copy)
Package Base: duckstation-git
Description: A Sony PlayStation (PSX) emulator, focusing on playability, speed, and long-term maintainability (git version)
Upstream URL: https://github.com/stenzek/duckstation
Keywords: emulator game gaming psone psx
Licenses: cc-by-nc-nd-4.0
Conflicts: duckstation
Provides: duckstation
Submitter: jackdroido
Maintainer: eugene
Last Packager: eugene
Votes: 27
Popularity: 0.37
First Submitted: 2020-04-25 18:24 (UTC)
Last Updated: 2025-03-31 22:04 (UTC)

Required by (0)

Sources (9)

Latest Comments

1 2 3 4 5 6 .. 11 Next › Last »

eugene commented on 2025-04-03 15:40 (UTC)

@UlrichH I've set DCMAKE_POLICY_VERSION_MINIMUM flag several versions ago. Package builds fine in the latest clean build environment. So make sure you are on the latest version of PKGBUILD, which is 0.1.r8839.gb798d8f1a-1 at the moment.

UlrichH commented on 2025-04-03 15:15 (UTC) (edited on 2025-04-03 15:21 (UTC) by UlrichH)

@Glorious7060 yes I have the same error, I don't know how to fix it.

HurricanePootis commented on 2025-03-31 19:06 (UTC)

@eugene

diff --git a/PKGBUILD b/PKGBUILD
index 40cf762..ad18ed3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 pkgname=duckstation-git
 _pkgname=duckstation
-pkgver=0.1.r8824.g54c42f9c2
+pkgver=0.1.r8839.gb798d8f1a
 pkgdesc='A Sony PlayStation (PSX) emulator, focusing on playability, speed, and long-term maintainability (git version)'
 pkgrel=1
 arch=(x86_64 aarch64)
@@ -123,6 +123,8 @@ build() {
                             -DCMAKE_EXE_LINKER_FLAGS_INIT="-fuse-ld=lld" \
                             -DCMAKE_MODULE_LINKER_FLAGS_INIT="-fuse-ld=lld" \
                             -DCMAKE_SHARED_LINKER_FLAGS_INIT="-fuse-ld=lld" \
+               -DCMAKE_C_FLAGS="$CFLAGS -flto=thin" \
+               -DCMAKE_CXX_FLAGS="$CXXFLAGS -flto=thin" \
                             -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
                             -DCMAKE_INSTALL_PREFIX=/usr \
                             $(yq -cr '[."config-opts"[] | select(. | test("_COMPILER") | not)] | join(" ")' "$flatpakdir/$dep")
@@ -140,8 +142,8 @@ build() {
         -DCMAKE_BUILD_TYPE=None \
         -DCMAKE_C_COMPILER=clang \
         -DCMAKE_CXX_COMPILER=clang++ \
-        -DCMAKE_C_FLAGS="$CFLAGS -Wno-error=format-security" \
-        -DCMAKE_CXX_FLAGS="$CXXFLAGS -Wno-error=format-security" \
+        -DCMAKE_C_FLAGS="$CFLAGS -Wno-error=format-security -flto=thin" \
+        -DCMAKE_CXX_FLAGS="$CXXFLAGS -Wno-error=format-security -flto=thin" \
         -DCMAKE_EXE_LINKER_FLAGS_INIT="-fuse-ld=lld" \
         -DCMAKE_MODULE_LINKER_FLAGS_INIT="-fuse-ld=lld" \
         -DCMAKE_SHARED_LINKER_FLAGS_INIT="-fuse-ld=lld" \

Since we are building with clang and lld, can we use thin LTO to speed up compile times?

Glorious7060 commented on 2025-03-29 21:28 (UTC)

Did anyone else had an error building discord-rpc?

-- Installing: /build/duckstation-git/src/deps/usr/lib/pkgconfig/libcpuinfo.pc Building discord-rpc... CMake Error at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake.

Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier.

Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

-- Configuring incomplete, errors occurred! ==> ERROR: A failure occurred in build().

The package gives me this error.

Nikolai508 commented on 2025-01-30 16:07 (UTC)

sdl3 now available in extra. AUR package of same name still exists, however there is an outstanding request for deletion against it.

eugene commented on 2025-01-26 22:13 (UTC)

sdl3 will be added to the dependencies once it is available in Extra.

Zoom8160 commented on 2025-01-26 17:28 (UTC)

Yep, it now requires sdl3 in order to build the package; pls add it as a dependency :).

CMake Error at CMakeModules/DuckStationDependencies.cmake:12 (find_package):
  By not providing "FindSDL3.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "SDL3", but CMake did not find one.

  Could not find a package configuration file provided by "SDL3" (requested version 3.2.0) with any of the following names:

    SDL3Config.cmake
    sdl3-config.cmake

  Add the installation prefix of "SDL3" to CMAKE_PREFIX_PATH or set "SDL3_DIR" to a directory containing one of the above files.  If "SDL3" provides a separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:36 (include)

Traace commented on 2025-01-25 09:50 (UTC)

seems like it requires sdl3 now. At least I couldn't build without it.

noabody commented on 2024-12-01 15:31 (UTC) (edited on 2024-12-01 15:33 (UTC) by noabody)

Path duckstation/scripts/flatpak is now duckstation/scripts/packaging/flatpak. Latest Arch sdl2 (2.30.9) now fulfills dependencies and build works as of today.

xAsh commented on 2024-09-22 15:55 (UTC) (edited on 2024-09-22 15:58 (UTC) by xAsh)

haven't been able to build this package for around a month now, duckstation-git doesn't seem to be compatible with sdl2-git (sdl2-git prerelease.2.29.2.r372.ga4a8a2907-1).

edit: i just removed the sdl2 version requirement from the PKGBUILD, and it both builds, and runs fine using sdl2-git.