unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: Adam Faiz <adam.faiz@disroot.org>, 64787@debbugs.gnu.org
Cc: iyzsong@envs.net
Subject: [bug#64787] [PATCH 2/2] gnu: Add openquest.
Date: Sat, 22 Jul 2023 11:23:06 +0200	[thread overview]
Message-ID: <d04c0e2fb8df5e7ad359446b034de87b4907e15f.camel@gmail.com> (raw)
In-Reply-To: <e215aae7-8007-6f2d-2d73-11b5e1587ed0@disroot.org>

Am Samstag, dem 22.07.2023 um 16:27 +0800 schrieb Adam Faiz:
> From 856d172ba50107ee74fe5c2aca5114923c89fbb1 Mon Sep 17 00:00:00
> 2001
> Message-ID:
> <856d172ba50107ee74fe5c2aca5114923c89fbb1.1690012542.git.adam.faiz@di
> sroot.org>
> In-Reply-To: <cover.1690012542.git.adam.faiz@disroot.org>
> References: <cover.1690012542.git.adam.faiz@disroot.org>
> From: AwesomeAdam54321 <adam.faiz@disroot.org>
> Date: Sat, 22 Jul 2023 15:38:48 +0800
> Subject: [PATCH 2/2] gnu: Add openquest.
> 
> * gnu/packages/games.scm (openquest): New variable.
> ---
>  gnu/packages/games.scm | 49
> ++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 49 insertions(+)
> 
> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
> index c388314771..7355b295b7 100644
> --- a/gnu/packages/games.scm
> +++ b/gnu/packages/games.scm
> @@ -5094,6 +5094,55 @@ (define openrct2-objects
>      "openrct2-objects is a set of objects for OpenRCT2.")
>     (license license:gpl3+)))
>  
> +(define-public openquest
> +  (package
> +    (inherit scummc)
> +    (name "openquest")
> +    (build-system trivial-build-system)
As a matter of principle, almost always prefer copy-build-system over
trivial-build-system, but see below.
> +    (arguments
> +     `(#:modules ((guix build utils))
> +       #:builder
> +       (begin
> +         (use-modules (guix build utils)
> +                      (ice-9 match))
> +         (let* ((out (assoc-ref %outputs "out"))
> +                (scummc (assoc-ref %build-inputs "scummc"))
> +                (share (string-append scummc "/examples/openquest"))
> +                (scummvm (assoc-ref %build-inputs "scummvm")))
> +           ;; Create standalone executable.
> +           (let* ((bin (string-append out "/bin"))
> +                  (executable (string-append bin "/openquest"))
> +                  (bash (search-input-file %build-inputs
> "/bin/bash")))
> +             (mkdir-p bin)
> +             (with-output-to-file executable
> +               (lambda ()
> +                 (format #t "#!~a~%" bash)
> +                 (format #t
> +                         "exec ~a/bin/scummvm --path=~a tentacle~%"
> +                         scummvm share)))
> +             (chmod executable #o755))
IIUC this is done via "make tentacle" in the previous package.
We would have to set the following make-flags:

SCC  = scc
SLD  = sld
COST = cost
CHAR = char
SOUN = soun

as well as possible other adjustments to use it without rebuilding, but
I'd say that's worth a try.

> +           ;; Create desktop file.  There is no official icon,
> +           ;; but the main character of the game is a good choice.
> +           (let ((apps (string-append out "/share/applications")))
> +             (mkdir-p apps)
> +             (make-desktop-entry-file
> +              (string-append apps "/openquest.desktop")
> +              #:name "OpenQuest"
> +              #:generic-name "OpenQuest"
> +              #:exec (string-append out "/bin/openquest")
> +              #:icon (string-append scummc
> "/examples/openquest/graphics/zob/frames/stand_S.bmp")
> +              #:categories '("AdventureGame" "Game" "RolePlaying")
> +              #:keywords '("game" "adventure" "roleplaying" "2D"
> "sci-fi")
> +              #:comment '((#f "Simple 2D point and click adventure
> game"))))))))
> +    (native-inputs
> +     (list bash unzip))
> +    (inputs
> +     (list scummc scummvm))
> +    (home-page "https://www.scummvm.org")
> +    (synopsis "Simple 2D point and click adventure game")
> +    (description "OpenQuest is a two room adventure game
> +that follows two aliens who come to Earth in search of a stolen
> artifact.")))
> +
> 

Cheers


  reply	other threads:[~2023-07-22  9:24 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-22  8:22 [bug#64787] [PATCH 0/2] gnu: Add openquest Adam Faiz via Guix-patches via
2023-07-22  8:24 ` [bug#64787] [PATCH 1/2] gnu: Add scummc Adam Faiz via Guix-patches via
2023-07-22  8:27   ` [bug#64787] [PATCH 2/2] gnu: Add openquest Adam Faiz via Guix-patches via
2023-07-22  9:23     ` Liliana Marie Prikler [this message]
2023-07-22  9:14   ` [bug#64787] [PATCH 1/2] gnu: Add scummc Liliana Marie Prikler
2023-07-22 15:28 ` [bug#64787] [PATCH v1 " Adam Faiz via Guix-patches via
2023-07-22 15:30   ` [bug#64787] [PATCH v1 2/2] gnu: Add openquest Adam Faiz via Guix-patches via
2023-07-22 16:07     ` Liliana Marie Prikler
2023-07-22 23:48 ` [bug#64787] [PATCH v2 1/2] gnu: Add scummc Adam Faiz via Guix-patches via
2023-07-22 23:50   ` [bug#64787] [PATCH v2 2/2] gnu: Add openquest Adam Faiz via Guix-patches via
2023-08-27  5:27 ` [bug#64787] [PATCH v3 1/2] gnu: Add scummc Adam Faiz via Guix-patches via
2023-08-27  6:21   ` Liliana Marie Prikler
2023-08-27  5:29 ` [bug#64787] [PATCH v3 2/2] gnu: Add openquest Adam Faiz via Guix-patches via
2023-08-27  6:22   ` Liliana Marie Prikler
2023-08-27  7:02 ` [bug#64787] [PATCH v4 1/2] gnu: Add scummc Adam Faiz via Guix-patches via
2023-08-27  7:03 ` [bug#64787] [PATCH v4 2/2] gnu: Add openquest Adam Faiz via Guix-patches via
2023-09-02  5:14 ` bug#64787: [PATCH 0/2] " Liliana Marie Prikler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d04c0e2fb8df5e7ad359446b034de87b4907e15f.camel@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=64787@debbugs.gnu.org \
    --cc=adam.faiz@disroot.org \
    --cc=iyzsong@envs.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).