~ruther/guix-local

a83f489309dcab40f3e25a654c4cefa510e4de72 — Anderson Torres 4 months ago 462bc5e
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 <andreas@enge.fr>
1 files changed, 29 insertions(+), 7 deletions(-)

M gnu/packages/games.scm
M gnu/packages/games.scm => gnu/packages/games.scm +29 -7
@@ 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