[bug#77618] gnu: azimuth: Update to 1.0.3-0.050f838.

Message ID CH3PR84MB34242B92A3ECE08772B20433C5AA2@CH3PR84MB3424.NAMPRD84.PROD.OUTLOOK.COM
State New
Headers
Series [bug#77618] gnu: azimuth: Update to 1.0.3-0.050f838. |

Commit Message

Morgan Smith April 7, 2025, 8:42 p.m. UTC
  * gnu/packages/games.scm (azimuth): Update to 1.0.3-0.050f838.

Change-Id: I8fac420512b89b9f3af2d7dedeed48b06d4ca684
---

This patch fixes a failing build

 gnu/packages/games.scm | 75 +++++++++++++++++++++++-------------------
 1 file changed, 41 insertions(+), 34 deletions(-)


base-commit: 666a6cfd88b3e5106a9180e06ea128db8084be0e
  

Comments

Christopher Baines April 11, 2025, 11:36 a.m. UTC | #1
Morgan Smith <Morgan.J.Smith@outlook.com> writes:

> * gnu/packages/games.scm (azimuth): Update to 1.0.3-0.050f838.
>
> Change-Id: I8fac420512b89b9f3af2d7dedeed48b06d4ca684
> ---
>
> This patch fixes a failing build
>
>  gnu/packages/games.scm | 75 +++++++++++++++++++++++-------------------
>  1 file changed, 41 insertions(+), 34 deletions(-)

Thanks for the patch, I took the opportunity to switch the arguments to
use G-expressions and pushed this to master as
5cdfd3d81fef06e364495304109e403b7357b8ad.

Chris
  

Patch

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index a69b492e6c..dbf2c779a4 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -12024,41 +12024,48 @@  (define-public xevil
       (license license:gpl2+))))
 
 (define-public azimuth
-  (package
-    (name "azimuth")
-    ;; Not marked as latest release, but it fixes a compiling issue
-    ;; and adds the install target.
-    (version "1.0.3")
-    (source
-     (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/mdsteele/azimuth")
-             (commit (string-append "v" version))))
-       (file-name (git-file-name name version))
-       (sha256
-        (base32
-         "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
-    (build-system gnu-build-system)
-    (arguments
-     `(#:test-target "test"
-       #:phases
-       (modify-phases %standard-phases
-         (delete 'configure)            ; no configure script
-         ;; Build release version instead of debug version.
-         (add-after 'unpack 'set-release
-           (lambda _
-             (setenv "BUILDTYPE" "release") #t))
-         (add-after 'unpack 'fix-install ; set install directory
-           (lambda* (#:key outputs #:allow-other-keys)
-             (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
-    (inputs (list sdl))
-    (home-page "https://mdsteele.games/azimuth/")
-    (synopsis "Metroidvania game with vector graphics")
-    (description
-     "Pilot your ship inside a planet to find and rescue the colonists trapped
+  ;; 1.0.3 - May 29, 2019
+  ;; Has build errors so build from latest source
+  (let ((commit "050f838b35d19ffdc738f33178abaf9d69d834ec")
+        (revision "0"))
+    (package
+      (name "azimuth")
+      (version (git-version "1.0.3" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/mdsteele/azimuth")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "1b5grp9ddhrj3n39j1j5vzm3052d4bd09fpz0b011h769vapwi0i"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:test-target "test"
+         #:phases
+         (modify-phases %standard-phases
+           (delete 'configure)            ; no configure script
+           ;; Build release version instead of debug version.
+           (add-after 'unpack 'set-release
+             (lambda _
+               (setenv "BUILDTYPE" "release")))
+           (add-after 'unpack 'fix-build
+             (lambda* (#:key outputs #:allow-other-keys)
+               (substitute* "Makefile"
+                 (("-Werror") ""))))
+           (add-after 'unpack 'fix-install ; set install directory
+             (lambda* (#:key outputs #:allow-other-keys)
+               (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
+      (inputs (list sdl2))
+      (native-inputs (list pkg-config))
+      (home-page "https://mdsteele.games/azimuth/")
+      (synopsis "Metroidvania game with vector graphics")
+      (description
+       "Pilot your ship inside a planet to find and rescue the colonists trapped
 inside the Zenith Colony.")
-    (license license:gpl3+)))
+      (license license:gpl3+))))
 
 (define-public cgoban
   (package