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 MDqbDnFrvGS8kwAASxT56A (envelope-from ) for ; Sun, 23 Jul 2023 01:51:13 +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 GMrdDXFrvGRDjwAAG6o9tA (envelope-from ) for ; Sun, 23 Jul 2023 01:51:13 +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 CB26C51325 for ; Sun, 23 Jul 2023 01:51:11 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=DSslBiVk; 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=1690069871; 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=VpqSIurISOB7tgFpJMw/JOewPGALKCDE1dj1O1clND0=; b=f7JNBy+FtfH32EWgs56OKv1wQjOWXeo1CJtkQw1hPsj0fFeM4fB2niSK+d/Z1/tUVbto1d WrmqYjT0Sv/ZYQ82sSqfdbZMZPr124GIFVnWH7SXAO2uY8XNgTywJFrkBXfl0xfThM1hks USW4U8nKSKVG7sl4Okiviy3++JijEf0+SkEu7YOjYEHb12QW9xuNdV40LqTmdTdnc868s5 31TUMWaAr94u/RuNHgPArGfrr09BLZDEwSaOnKW59iBsNpCJFz9i1IZ6GmD39ATCZZ1ZFO E3baH8ypWzx6pSzDcKihVXf11WC+91coKChwpvgPu6BB+M1xklqDps3xHug1GA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690069871; a=rsa-sha256; cv=none; b=n3R1T55tYkHqHbu295Rq1DRyz5qjCLAKN3xx/QZ8hMChAU/jxgwAv4M11q2rxam2GlCzNq GNQEoMIPC0PSU5VXg79X/frCHMeDwK+PUf/ysQCNeCnZHeraPSrYFoCBXNpXTJMDfoun95 39FA6VguTF8CrFRsJlbbAGc7lmnAzSZ7tntwhW2BzGm5pcQnZT42Lv0nqr4bl/sMHuQwpu OgwPQd+UzZ3BnfuCvxUJyLGGbo6B/FsJZZFRrEWzS1r5bVEDsRpNplTjqFmF1A72hhp4Ls AgoCblSCwQmPJGHTz/OH4tqqNtglugigiqyAlilVKVuVsV6cfVbvCrTkS4SPPw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=DSslBiVk; 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 1qNMNK-0008Nb-RL; Sat, 22 Jul 2023 19:51: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 1qNMNK-0008NT-1i for guix-patches@gnu.org; Sat, 22 Jul 2023 19:51: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 1qNMNJ-0003Ny-Pz for guix-patches@gnu.org; Sat, 22 Jul 2023 19:51:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNMNJ-0006My-Lj for guix-patches@gnu.org; Sat, 22 Jul 2023 19:51:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64787] [PATCH v2 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 23:51: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.169006981524430 (code B ref 64787); Sat, 22 Jul 2023 23:51:01 +0000 Received: (at 64787) by debbugs.gnu.org; 22 Jul 2023 23:50:15 +0000 Received: from localhost ([127.0.0.1]:37676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNMMZ-0006Lx-01 for submit@debbugs.gnu.org; Sat, 22 Jul 2023 19:50:15 -0400 Received: from knopi.disroot.org ([178.21.23.139]:56918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNMMX-0006Lp-DN for 64787@debbugs.gnu.org; Sat, 22 Jul 2023 19:50:14 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id CFBC740747; Sun, 23 Jul 2023 01:50:09 +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 hsKSzXlmDx5O; Sun, 23 Jul 2023 01:50:08 +0200 (CEST) Message-ID: <076074f9-7ed6-9ae6-15f1-ce6b1806ddd1@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1690069808; bh=pyNGkDQ2YgeMP17NUPvIwNnyxMLoSRBGqHSQOSv6CHc=; h=Date:Subject:From:To:References:Cc:In-Reply-To; b=DSslBiVkUayPWBxJSkRyMbRyhAp2yT0zbEvcaXaFE/yn0nDdFjCPRzOFhN/NItLLb UJI6q+lBMqOF0rMHIQuaDCFck6703RryxK1eXn6sV3xkVf2sCJb2nEW2nGQMtk98OB 0//5fMNoIAkGV1VfGUijj4FW3ldpdKq2oHGVI7/Y8u9waCnH8iYjgTFqRiQqQ8+xnT TC1Ew2EASDUph51dDTOwDV03jno85Ya5iQ43OPC1VpPC1AA0CRTWvUswfYbHJgHiof wijtFrMNjKrVeh9di1fDxqdF0Ob5pg/Vw58LuyODZSm2/cogpgSaHVF7u89cUlU2Sj hWe1OC7SLb0FA== Date: Sun, 23 Jul 2023 07:50:03 +0800 MIME-Version: 1.0 Content-Language: en-US References: In-Reply-To: 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.16 X-Spam-Score: -5.16 X-Migadu-Queue-Id: CB26C51325 X-Migadu-Scanner: mx1.migadu.com X-TUID: fLFsaec93lbW >From bcb776213db44c48735694ab44941d1fc7e38e31 Mon Sep 17 00:00:00 2001 Message-ID: In-Reply-To: References: From: AwesomeAdam54321 Date: Sat, 22 Jul 2023 15:38:48 +0800 Subject: [PATCH v2 2/2] gnu: Add openquest. * gnu/packages/games.scm (openquest): New variable. --- gnu/packages/games.scm | 82 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index c388314771..a35c4c6db6 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -5094,6 +5094,88 @@ (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* "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"))) + (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