From patchwork Sat Jul 22 08:27:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 51923 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 13A2627BBE2; Sat, 22 Jul 2023 09:29:26 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4522A27BBE9 for ; Sat, 22 Jul 2023 09:29:24 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qN7z6-0002H8-K0; Sat, 22 Jul 2023 04:29:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qN7z4-0002Fc-S6 for guix-patches@gnu.org; Sat, 22 Jul 2023 04:29:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qN7z4-0004qx-JZ for guix-patches@gnu.org; Sat, 22 Jul 2023 04:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qN7z4-0004XG-Fc for guix-patches@gnu.org; Sat, 22 Jul 2023 04:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64787] [PATCH 2/2] gnu: Add openquest. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 22 Jul 2023 08:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64787 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64787@debbugs.gnu.org Cc: Liliana Marie Prikler , iyzsong@envs.net Received: via spool by 64787-submit@debbugs.gnu.org id=B64787.169001448217319 (code B ref 64787); Sat, 22 Jul 2023 08:29:02 +0000 Received: (at 64787) by debbugs.gnu.org; 22 Jul 2023 08:28:02 +0000 Received: from localhost ([127.0.0.1]:35441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qN7y5-0004V3-Rb for submit@debbugs.gnu.org; Sat, 22 Jul 2023 04:28:02 -0400 Received: from knopi.disroot.org ([178.21.23.139]:37070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qN7y2-0004Ui-MG for 64787@debbugs.gnu.org; Sat, 22 Jul 2023 04:27:59 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id E5C7A44F24; Sat, 22 Jul 2023 10:27:54 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wAeqRgl_9IrS; Sat, 22 Jul 2023 10:27:53 +0200 (CEST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1690014473; bh=HA/vdaqApmNYCJifuVcPdAZl0/lwYPgeO71GZUy+WWY=; h=Date:Subject:From:To:Cc:References:In-Reply-To; b=Qab02PEdNvCrVHQlt8jK2v0B8o8ld+6Watp+e9ws6lUoLyneLlASfizYvs1drNFIL h2UKCMAvr57ZtK0M9+FkndrCiW+SntCcTb1aemdPe7eWMsxN1dnfug1aFqUE9blZKZ 8x/Rvz/haA1Ba2X8H3B0JaIEqFYsXsVlBXKqgxT82LR/IcxFAvDQa6xmGNj7C0Sp7r UHBZGe3l+HHW2m9Vg+hFY2KY1jQJlC/Ot/t2Gv2lq4PxQVd7YiFtFTbUKMMZ0KkZxn 7H4xSkHxPz9pQEppIwMbpu+Mj+FZyid1nhkCWVTeTRUkWwBUhwndjGBvoYsDyWU64G XkaqGddEQwcKA== Date: Sat, 22 Jul 2023 16:27:49 +0800 MIME-Version: 1.0 Content-Language: en-US References: <82cbd1ec-be9b-bd78-79a4-0c375d0f5c57@disroot.org> In-Reply-To: <82cbd1ec-be9b-bd78-79a4-0c375d0f5c57@disroot.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 856d172ba50107ee74fe5c2aca5114923c89fbb1 Mon Sep 17 00:00:00 2001 Message-ID: <856d172ba50107ee74fe5c2aca5114923c89fbb1.1690012542.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 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) + (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)) + ;; 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."))) + (define-public openrct2 (package (name "openrct2")