guix_mirror_bot pushed a commit to branch master
in repository guix.

commit a83f489309dcab40f3e25a654c4cefa510e4de72
Author: Anderson Torres <[email protected]>
AuthorDate: Fri Nov 21 18:55:01 2025 -0300

    gnu: 7kaa: Use git instead of tarball.
    
    The tarball contains machine-generated items.
    
    * gnu/packages/games.scm (7kaa): Cleanup.
    [source]: Use git repository.
    [arguments]<#:phases>: Add 'patch-configure-ac to fix gettext version
    mismatch.
    [native-inputs]: Add autoconf, autoconf-archive, automake.
    [home-page]: Set it accordingly to avoid redirection.
    
    Change-Id: Ieecdf7cfb1baa592bc3376d6a582ae7ae535e50a
    Signed-off-by: Andreas Enge <[email protected]>
---
 gnu/packages/games.scm | 36 +++++++++++++++++++++++++++++-------
 1 file changed, 29 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 8108b597c0..099c1b5a80 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -11994,17 +11994,38 @@ protect you.")
     (version "2.15.6")
     (source
      (origin
-       (method url-fetch)
-       (uri (string-append "mirror://sourceforge/skfans/"
-                           "7KAA%20" version "/7kaa-" version ".tar.gz"))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://git.code.sf.net/p/skfans/7kaa";)
+              (commit (string-append "v" version))))
        (sha256
-        (base32 "15a0cl55bg479gw880yz48myg336q5lwp2zpyxyyhyadq26vjy9c"))))
+        (base32 "02knhrk19pz2qiy2n48spipm0qa5rkh3vmfswk963d1yaj83whwj"))))
     (build-system gnu-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-configure-ac
+            ;; gettext version mismatch forces us to patch configure.ac
+            (lambda _
+              (let ((gettext-version
+                     #$(package-version (this-package-native-input 
"gettext-minimal"))))
+                (substitute* "configure.ac"
+                (("AM_GNU_GETTEXT_VERSION.*")
+                 (string-append
+                  "AM_GNU_GETTEXT_VERSION([" gettext-version "])\n"
+                  "AM_GNU_GETTEXT_REQUIRE_VERSION([" gettext-version 
"])\n")))))))))
     (native-inputs
-     (list gettext-minimal pkg-config))
+     (list autoconf
+           autoconf-archive
+           automake
+           gettext-minimal
+           pkg-config))
     (inputs
-     (list curl enet openal sdl2))
-    (home-page "https://7kfans.com/";)
+     (list curl
+           enet
+           openal
+           sdl2))
     (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
     (description
      "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
@@ -12013,6 +12034,7 @@ enables players to compete against up to six other 
kingdoms allowing players
 to conquer opponents by defeating them in war (with troops or machines),
 capturing their buildings with spies, or offering opponents money for their
 kingdom.")
+    (home-page "https://7kfans.com/index.html";)
     (license license:gpl2+)))
 
 (define-public neverball

Reply via email to