From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WOIDNbL16mTbaAEAG6o9tA:P1 (envelope-from ) for ; Sun, 27 Aug 2023 09:05:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WOIDNbL16mTbaAEAG6o9tA (envelope-from ) for ; Sun, 27 Aug 2023 09:05:22 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 72261423B0 for ; Sun, 27 Aug 2023 09:05:22 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=Gb1PCByL; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693119922; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IdnCfdfzsRNX6SL1/GI0lCds56e4klyecAxDUiv75jA=; b=H/3JUfYTaQFCxSdCjwekS52adcjPPnLIvyFzTjVf2RTTPd0w65ZB65c+x8Mjq6KPS3/VYh +sRUhcqFdZIjhh87eEmVbhdGRiD9EIkGtf/GL/IT3VzrRG/Id5E3QrNNcvRnvrMJfvvHjO c+/VNjFB4VusAJBE466v29xt3j4sjyKobL/b+r4VMR9b1kHpRt1c6WpjP19gkTWrNs4Xgw TWMUqCSd66ytyB1KQD8Z1CErBLYUF62FLzmCpQq777el0qUB0O3qf48LzPbX+LswKincdx 3iLgS/nJLhbC1/ZsMyoek3NvfyPID91aAsewV7ngS/SW3yIVF/hEerZGNNED4Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693119922; a=rsa-sha256; cv=none; b=h6S6wGMqsECktd0Zmiw4+otBpzDaN0LCT8cdWeVYKOSkz4mVprnMH2THLZ1CTNBOLi5+Ob l+ZK25lJoz4w7JDgeQ6y7mopYt+nO35STH7eRKb3i4zAXtlOmBA1yMrGH/2CwJVFtVcaDv tDApLf5K8Wst/83rmd69iTEXGPvtk/D1zQDdX1LkxdZNCA4CWAPn/A2z7no2dHvf4H+CN/ LL+ymJQ0Zm4hGsGfLH0rK3i8okxJaec/n+BBhaeo7v4bK1W4L+kVTCDQowJsOSOWTO5Uwz P+1muuKxrUHRpRFZSuyDOdQ10Aew5w3xUdIKTw0bNxVDUpk6CArSuOejpr+DLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=Gb1PCByL; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qa9pg-0007sq-G8; Sun, 27 Aug 2023 03:05:12 -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 1qa9pQ-0007jm-Rj for guix-patches@gnu.org; Sun, 27 Aug 2023 03:05:00 -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 1qa9pQ-0002ZJ-5C for guix-patches@gnu.org; Sun, 27 Aug 2023 03:04:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qa9pV-0007CJ-Ol for guix-patches@gnu.org; Sun, 27 Aug 2023 03:05:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64787] [PATCH v4 2/2] gnu: Add openquest. References: In-Reply-To: Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Aug 2023 07:05:01 +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 Received: via spool by 64787-submit@debbugs.gnu.org id=B64787.169311985127605 (code B ref 64787); Sun, 27 Aug 2023 07:05:01 +0000 Received: (at 64787) by debbugs.gnu.org; 27 Aug 2023 07:04:11 +0000 Received: from localhost ([127.0.0.1]:43939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qa9og-0007BA-Fh for submit@debbugs.gnu.org; Sun, 27 Aug 2023 03:04:10 -0400 Received: from layka.disroot.org ([178.21.23.139]:45118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qa9of-0007B3-7O for 64787@debbugs.gnu.org; Sun, 27 Aug 2023 03:04:09 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 0644441064; Sun, 27 Aug 2023 09:04:03 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G339bvgUZH6H; Sun, 27 Aug 2023 09:04:01 +0200 (CEST) Message-ID: <88a53d97-a869-3e35-baf6-22e9f64cbcc6@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1693119841; bh=fOgytH8xNVZ2kCBAgo1VSO0r0hXJWryt+j2vSQ6H0/s=; h=Date:To:Cc:From:Subject; b=Gb1PCByLRzVX7KSXO90JW+B9OZx0rYkz/aTNqJ1tbyr7ef+8OFHufLdy2YsKRHUaL VWj811607TvAZ3ItnNjAEiZdVYpQPWeamjUNX1heUU2ns5XyucRowbbN0pCI4ZeKsG 7ma7sT9cNJb6S1c5t+15D81UdOLsD3AS1eFOQtT0ppsALDDhlujEe7Q3EoApx51k/6 /KvexgU0mGst3kRbmTUgp4n9uzMFWRe3e4ZCc8XWFcs3ajY2s6XDS8D4P8Ej4JpAW+ BiIUD61qolIPlM/5fQ2bNcLcOcoEP4bNuttGkI55bVp0Ti7I026fOj+vfjR5IaZjkA 5fZSjORNVZdNg== Date: Sun, 27 Aug 2023 15:03:58 +0800 MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 From: Adam Faiz via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.72 X-Spam-Score: -6.72 X-Migadu-Queue-Id: 72261423B0 X-Migadu-Scanner: mx1.migadu.com X-TUID: Is0dufwiT5bD >From b0a6c70414b65872571ef66bf66b49ea0b3f3666 Mon Sep 17 00:00:00 2001 Message-ID: In-Reply-To: <98ebef1cd99f84a70b5e16ed9dd6e772c2c61f74.1693119612.git.adam.faiz@disroot.org> References: <98ebef1cd99f84a70b5e16ed9dd6e772c2c61f74.1693119612.git.adam.faiz@disroot.org> From: AwesomeAdam54321 Date: Sat, 22 Jul 2023 15:38:48 +0800 Subject: [PATCH v4 2/2] gnu: Add openquest. * gnu/packages/games.scm (openquest): New variable. --- gnu/packages/games.scm | 86 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index e594eb701c..777ab73789 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -5099,6 +5099,92 @@ (define openrct2-objects "openrct2-objects is a set of objects for OpenRCT2.") (license license:gpl3+))) +(define-public openquest + (package + (name "openquest") + (version "0.2.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/AlbanBedel/scummc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yyq05kfmvgx5aa68kg1l5a4lpsky7hzxxcdvv2xbgf0jljdcl3k")) + (modules '((guix build utils))) + (snippet + #~(begin + (substitute* "configure" + (("\\|alpha" all) + (string-append all "|arm|aarch64|powerpc64le"))) + (substitute* "examples/example.mak" + (("scost.*\n$") "scost\n") + (("bmp \\$\\(.*\n$") "bmp\n") + (("/%.scc.*\n$") "/%.scc\n") + (("voc \\$\\(.*\n$") "voc\n")) + (substitute* "Makefile.target" + (("distrib-data:.*\n") "distrib-data:\n") + (("cp.*/bin" all) + (string-append all " || true"))))))) + (build-system gnu-build-system) + (arguments + (substitute-keyword-arguments (package-arguments scummc) + ((#:make-flags _) + #~(list "SCC=scc" + "SLD=sld" + "COST=cost" + "CHAR=char" + "SOUN=soun")) + ((#:phases phases) + #~(modify-phases #$phases + (replace 'build + (lambda* (#:key make-flags #:allow-other-keys) + (with-directory-excursion "examples/openquest" + (apply invoke "make" "tentacle" make-flags)))) + (add-after 'install 'install-executable + (lambda* (#:key inputs #:allow-other-keys) + ;; Create standalone executable. + (let* ((bash (search-input-file inputs "/bin/bash")) + (share (string-append #$output "/examples/openquest")) + (scummvm (search-input-file inputs "/bin/scummvm")) + (bin (string-append #$output "/bin")) + (executable (string-append bin "/openquest"))) + (mkdir-p bin) + (with-output-to-file executable + (lambda () + (format #t "#!~a~%" bash) + (format #t + "exec ~a --path=~a tentacle~%" + scummvm share))) + (chmod executable #o755)))) + (add-after 'install-executable 'install-desktop-file + (lambda _ + ;; Create desktop file. There is no official icon, + ;; but the main character of the game is a good choice. + (let* ((apps (string-append #$output "/share/applications")) + (share (string-append #$output "/examples/openquest"))) + (mkdir-p apps) + (make-desktop-entry-file + (string-append apps "/openquest.desktop") + #:name "OpenQuest" + #:generic-name "OpenQuest" + #:exec (string-append #$output "/bin/openquest") + #:icon (string-append share "/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")))))))))) + (inputs + (list bash scummvm)) + (native-inputs + (modify-inputs (package-native-inputs scummc) + (prepend scummc))) + (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.") + (license license:gpl2+))) + (define-public openrct2 (package (name "openrct2") -- 2.41.0