From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WDv4Nz/2u2RuSwAASxT56A (envelope-from ) for ; Sat, 22 Jul 2023 17:31:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iKgpNz/2u2QaHwAAG6o9tA (envelope-from ) for ; Sat, 22 Jul 2023 17:31:11 +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 52D0A493A2 for ; Sat, 22 Jul 2023 17:31:11 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=eAXshbVe; 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=1690039871; 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=ebeUjUc5jofzEWImgoXe/mQgNGraeSJrVcdSdf8h8NI=; b=P4U81hJWrQW7gH6l9nBnwAuqIB+9GzzN+zJjnKXZV/fJTnjyHaXEjLPm4w1gBuzPVldDod mpJWjSMRpXTZ4UKm3Nng6p79hoIZAmxzyG3RV6IW1dosqPiXN7w1ODdP1TGIglLgOM9BxV t9PcR57fahaAchadQ2RdaZ19nc3mzyRYqaLn3YNOnzZ2X+CjyMOAuReLf+1UzqsFk9MARy BQs/Aoir/X4yk6LvuyuPSpv4iL2eU5qwif0m62ELWVrWPMUy8xZqppm8s5hnRpFp1nH5Lm P+68zDKWh/WP4CmJswzL/TeigRMZ0wX9KTuOVzApo3z2fNBJzFPLNenoVAHHfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=eAXshbVe; 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-Seal: i=1; s=key1; d=yhetil.org; t=1690039871; a=rsa-sha256; cv=none; b=IW7A09hUWtgatdipYMM5WoqDJCQ7FCvdQGd0kIGVI3ejuiM0lyEwrwE4ivn/9n912x+ZyZ EPT+4cQGSsvl2pfxdsn0pmS+FtsS4V4WXC+hvJPI7wauHN7DhwlLG2A+PJaC70891dNkS/ ZUsRuWvTgozenJk2YwelFtAzLe29GVFuIbDzFX8nPhC69sWxkp9fbtvlK6j+HciNY1Xirh JyB6A1hLGKrC7RnyVy/G+lcJnS52jBTCZf/yY3V7+1j0x9819AdO08GbWRwo3GZZJ7KiEn fUVcQT+leb+Q4Xs6/SenGRTh3cWahRiQZ3tHjWFZxJFcA+bAZaUHDpXiX5qYFw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNEZS-0006U5-TH; Sat, 22 Jul 2023 11:31:02 -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 1qNEZS-0006Tb-7p for guix-patches@gnu.org; Sat, 22 Jul 2023 11:31: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 1qNEZR-0003YN-Vb for guix-patches@gnu.org; Sat, 22 Jul 2023 11:31:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNEZR-0001uD-RT for guix-patches@gnu.org; Sat, 22 Jul 2023 11:31:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64787] [PATCH v1 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 15:31: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.16900398527310 (code B ref 64787); Sat, 22 Jul 2023 15:31:01 +0000 Received: (at 64787) by debbugs.gnu.org; 22 Jul 2023 15:30:52 +0000 Received: from localhost ([127.0.0.1]:37485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNEZI-0001tq-7C for submit@debbugs.gnu.org; Sat, 22 Jul 2023 11:30:52 -0400 Received: from knopi.disroot.org ([178.21.23.139]:45954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNEZG-0001td-Cb for 64787@debbugs.gnu.org; Sat, 22 Jul 2023 11:30:50 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8D88A4109A; Sat, 22 Jul 2023 17:30:46 +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 aMZTZwPlLAaE; Sat, 22 Jul 2023 17:30:45 +0200 (CEST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1690039845; bh=Vm+QLx25sKJAOy/QK0wwJvNO9AMa20RMwpEfSGp3ezA=; h=Date:Subject:From:To:Cc:References:In-Reply-To; b=eAXshbVe5nzbmbzuPLx1GmpdvWwbYpninOhVUaHYGQKSO4UUcuVcXuLZY2aT3OHgh XCVOozwwP5tP7hPk+iIkcQ7A/HJIyZWX7weE7yHXIiRJn/08Wbf/PeO8UHdt3htfQt 40e8sLsKnsVE0hN5aNgQTQ/G4kryC42tPXUDFPZ4/Gf4nOB+Pq5UXfXTEOUWRacr3b w0gmeD8/E9mo5kdCcstc5Xho1kMnZWZ0AmRcnmcgJ1xw8rMBb5uSSoijnMPeIwvs0F vcawhyyZmy3WQWc9BB2NgroU/8K6tSma+yL+VK1AAKQ4stGPPdiH7mCTX3fmivuwMc 37EwZdZ7b6GJg== Date: Sat, 22 Jul 2023 23:30:40 +0800 MIME-Version: 1.0 Content-Language: en-US References: <01ed1b7d-85ac-5b24-6778-158f9c5467d8@disroot.org> In-Reply-To: <01ed1b7d-85ac-5b24-6778-158f9c5467d8@disroot.org> 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-Spam-Score: -6.65 X-Migadu-Queue-Id: 52D0A493A2 X-Migadu-Spam-Score: -6.65 X-Migadu-Scanner: mx0.migadu.com X-TUID: jtjehAUx9laT >From 4ae5c4a4de15f4fb7fcd165e3e619e356051b049 Mon Sep 17 00:00:00 2001 Message-ID: <4ae5c4a4de15f4fb7fcd165e3e619e356051b049.1690039034.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Sat, 22 Jul 2023 15:38:48 +0800 Subject: [PATCH v1 2/2] gnu: Add openquest. * gnu/packages/games.scm (openquest): New variable. --- gnu/packages/games.scm | 62 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index c388314771..39fbfc195f 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -5094,6 +5094,68 @@ (define openrct2-objects "openrct2-objects is a set of objects for OpenRCT2.") (license license:gpl3+))) +(define-public openquest + (package + (name "openquest") + (version "1.0") + (source (package-source scummc)) + (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"))) + (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 #$output "/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 + (modify-inputs (package-native-inputs scummc) + (prepend scummc))) + (inputs + (list bash 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.") + (license license:gpl2+))) + (define-public openrct2 (package (name "openrct2") -- 2.41.0