Package Details: split700 2.0-1

Git Clone URL: https://aur.archlinux.org/split700.git (read-only, click to copy)
Package Base: split700
Description: Extracts BRR samples from SNES SPC700 format (*.spc)
Upstream URL: https://github.com/gocha/split700
Licenses: MIT
Submitter: Auerhuhn
Maintainer: Auerhuhn
Last Packager: Auerhuhn
Votes: 0
Popularity: 0.000000
First Submitted: 2022-06-06 18:57 (UTC)
Last Updated: 2024-04-14 21:06 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

i8degrees commented on 2025-10-01 15:11 (UTC)

To anybody whom is trying to build this software and encounters the same error as I did,

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.

I chose to resolve the issue by appending -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to the end of the build function where cmake is called to configure the project. If I were the package maintainer, I might consider modifying the source tree's top-level CMakeLists.txt as per the suggestion from the error.

Here is a git compatible patch that one may apply directly from within the source tree that is checked out when I ran pamac install split700 at /var/tmp/pamac-build-<user>/split700,

diff --git i/PKGBUILD w/PKGBUILD
index 87e8f67..53d90ab 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -21,7 +21,8 @@ build() {
   cmake -B build -S "${pkgname}-${pkgver}" \
     -DCMAKE_BUILD_TYPE='None' \
     -DCMAKE_INSTALL_PREFIX='/usr' \
-    -Wno-dev
+    -Wno-dev \
+    -DCMAKE_POLICY_VERSION_MINIMUM=3.5
   cmake --build build
 }

Alternatively, you may make the modification directly using the e key binding when it asks you what to do right before building the package.

Cheers!