guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#28453] [PATCH 3/5] gnu: Add openttd-opensfx.


From: Kei Kebreau
Subject: [bug#28453] [PATCH 3/5] gnu: Add openttd-opensfx.
Date: Thu, 14 Sep 2017 18:50:26 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Arun Isaac <address@hidden> writes:

> * gnu/packages/games.scm (openttd-opensfx): New variable.
> ---
>  gnu/packages/games.scm | 30 ++++++++++++++++++++++++++++++
>  1 file changed, 30 insertions(+)
>
> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
> index 7bfd05cc7..1debd6915 100644
> --- a/gnu/packages/games.scm
> +++ b/gnu/packages/games.scm
> @@ -2525,6 +2525,36 @@ OpenGFX provides you with...
>  @end enumerate")
>      (license license:gpl2)))
>  
> +(define openttd-opensfx
> +  (package
> +    (name "openttd-opensfx")
> +    (version "0.2.3")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append
> +             "https://binaries.openttd.org/extra/opensfx/";
> +             version "/opensfx-" version "-source.tar.gz"))
> +       (sha256
> +        (base32
> +         "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
> +    (build-system gnu-build-system)
> +    (native-inputs
> +     `(("catcodec" ,catcodec)
> +       ("python" ,python-2)))
> +    (arguments
> +     `(#:make-flags
> +       (list (string-append "INSTALL_DIR=" %output
> +                            "/share/games/openttd/baseset/opensfx"))
> +       #:phases (modify-phases %standard-phases
> +                  (delete 'configure))))

I wrote a tiny phase that makes this package reproducible:

(replace 'configure
  (lambda _
    ;; Remove the time dependency of the installed tarball by
    ;; setting the modification times if its members to 0.
    (substitute* "scripts/Makefile.def"
      (("-cf") " address@hidden -cf"))
    #t))

> +    (home-page "http://dev.openttdcoop.org/projects/opensfx";)
> +    (synopsis "Base sounds for OpenTTD")
> +    (description "OpenSFX is a set of free base sounds for OpenTTD which make
> +it possible to play OpenTTD without requiring the proprietary sound files 
> from
> +the original Transport Tycoon Deluxe.")
> +    (license license:cc-sampling-plus-1.0)))
> +
>  (define-public openttd
>    (package
>      (inherit openttd-engine)

Other than that, LGTM.

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]