From unknown Sat Jul 26 21:33:02 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#38805] [PATCH] Add lure. Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 30 Dec 2019 02:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38805 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38805@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157767138418140 (code B ref -1); Mon, 30 Dec 2019 02:04:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 Dec 2019 02:03:04 +0000 Received: from localhost ([127.0.0.1]:60390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilkOd-0004iU-TQ for submit@debbugs.gnu.org; Sun, 29 Dec 2019 21:03:04 -0500 Received: from lists.gnu.org ([209.51.188.17]:55720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilkOb-0004hp-W2 for submit@debbugs.gnu.org; Sun, 29 Dec 2019 21:03:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34583) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilkOa-0004RZ-8q for guix-patches@gnu.org; Sun, 29 Dec 2019 21:03:01 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilkOY-0005Rz-3J for guix-patches@gnu.org; Sun, 29 Dec 2019 21:02:59 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:41551) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ilkOW-0005QY-CS for guix-patches@gnu.org; Sun, 29 Dec 2019 21:02:58 -0500 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 85124240003 for ; Mon, 30 Dec 2019 02:02:53 +0000 (UTC) From: Nicolas Goaziou Date: Mon, 30 Dec 2019 03:02:52 +0100 Message-ID: <87r20mzi2b.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.193 X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain Hello, The following patch adds Lure of the Temptress game, in several languages. There is a single game, but the files cannot live in the same directory, and you probably never want to use more than one language. Therefore, I abused the outputs mechanism: each output is a language, "out" being the default English language. According to #guix, this is not a good way to use outputs, but I don't know how to do better. So, here is the patch! Feedback welcome, of course! Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-lure.patch Content-Description: Add lure >From 58661856821647e04bad8c9fdf82e3eee774a06f Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 30 Dec 2019 02:43:59 +0100 Subject: [PATCH] gnu: Add lure. * gnu/packages/games.scm (lure): New variable. --- gnu/packages/games.scm | 159 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 80ea82c123..61beb5fa77 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -7635,6 +7635,165 @@ the World and demonstrating that he is even more evil than his brother Vlad.") ;; Drascula uses a BSD-like license. (license (license:non-copyleft "file:///readme.txt")))) +(define-public lure + (package + (name "lure") + (version "1.1") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/scummvm/extras/" + "Lure%20of%20the%20Temptress/" + "lure-" version ".zip")) + (sha256 + (base32 "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk")))) + (outputs '("out" "de" "es" "fr" "it")) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let* ((scummvm (assoc-ref %build-inputs "scummvm")) + (unzip (string-append (assoc-ref %build-inputs "unzip") + "/bin/unzip")) + (make-executable-and-desktop-file + (lambda (name output language) + (let* ((bin (string-append output "/bin")) + (apps (string-append output "/share/applications")) + (executable (string-append bin "/" name)) + (bash (assoc-ref %build-inputs "bash")) + (scummvm (assoc-ref %build-inputs "scummvm"))) + ;; Build the executable. + (mkdir-p bin) + (with-output-to-file executable + (lambda () + (format #t "#!~a/bin/bash~%" bash) + (format #t + "exec ~a/bin/scummvm -q ~a -p ~a lure~%" + scummvm + language + (string-append output "/share/lure/" + language)))) + (chmod executable #o755) + ;; Create desktop file. There is no dedicated + ;; icon for the game, so we borrow SCUMMVM's. + (mkdir-p apps) + (with-output-to-file (string-append apps "/" name ".desktop") + (lambda _ + (format #t + "[Desktop Entry]~@ + Name=Lure of the Temptress~@ + GenericName=Lure~@ + Exec=~a~@ + Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@ + Categories=AdventureGame;Game;RolePlaying;~@ + Keywords=game;adventure;roleplaying;2D,fantasy;~@ + Comment=Classic 2D point and click adventure game~@ + Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@ + Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@ + Comment[it]=Gioco classico di avventura punta e clicca 2D~@ + Type=Application~%" + executable scummvm))))))) + ;; Main output: English language. + (let* ((out (assoc-ref %outputs "out")) + (share (string-append out "/share/lure")) + (doc (string-append out "/share/doc/lure-" ,version))) + (invoke unzip "-j" (assoc-ref %build-inputs "source")) + (for-each (lambda (f) (install-file f doc)) + (find-files "." "\\.(txt|PDF|pdf)$")) + (for-each (lambda (f) (install-file f (string-append share "/en"))) + (find-files "." "\\.vga$")) + (make-executable-and-desktop-file "lure" out "en")) + ;; Install additional languages. + (for-each + (lambda (lang) + (let* ((source (string-append "lure-" lang)) + (output (assoc-ref %outputs lang)) + (doc (string-append output "/share/doc/lure-" ,version)) + (directory (string-append output "/share/lure/" lang))) + (mkdir-p directory) + (invoke + unzip + "-j" (assoc-ref %build-inputs source) + "-x" "*/README" "*/*.txt" "*/*.EXE" "*/*.exe" "*/PROTECT.*" + "-d" directory) + (mkdir-p doc) + (rename-file (string-append directory "/Manual.pdf") + (string-append doc "/Manual-" lang ".pdf")) + (make-executable-and-desktop-file (string-append "lure-" lang) + output + lang))) + '("de" "es" "fr" "it")) + #t)))) + (native-inputs + `(("bash" ,bash) + ("unzip" ,unzip))) + (inputs + `(("scummvm" ,scummvm) + ("lure-de" + ,(origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/scummvm/extras/" + "Lure%20of%20the%20Temptress/" + "lure-de-" version ".zip")) + (sha256 + (base32 "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy")))) + ("lure-es" + ,(origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/scummvm/extras/" + "Lure%20of%20the%20Temptress/" + "lure-es-" version ".zip")) + (sha256 + (base32 "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk")))) + ("lure-fr" + ,(origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/scummvm/extras/" + "Lure%20of%20the%20Temptress/" + "lure-fr-" version ".zip")) + (sha256 + (base32 "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9")))) + ("lure-it" + ,(origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/scummvm/extras/" + "Lure%20of%20the%20Temptress/" + "lure-it-" version ".zip")) + (sha256 + (base32 "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj")))))) + (home-page "https://www.scummvm.org") + (synopsis "2D point and click fantasy adventure game") + (description "Lure of the Temptress was Revolution's very first +adventure game and work began on it in 1989, even before Revolution's +inception as an actual games development company. + +You are Diermot, an unwilling hero who'd prefer a quiet life, and are, +to all intents and purposes, a good man. After decades of unrest the +King has united the warring factions in his kingdom and all his lands +are at peace, except a remote region around a town called Turnvale. +A revolt has recently taken place in Turnvale, a revolt orchestrated +by an apprentice sorceress called Selena, the titular temptress. The +king calls together his finest horsemen and heads off (with you in +tow) to Turnvale just to witness how hellish mercenary monsters called +Skorl are invading the town. + +The king's men are defeated, the king is killed and you fall of your +horse and bang your head heavily on the ground. You have been +*unconscious for a while when you realize that you are in a dingy cell +guarded by a not so friendly Skorl. Maybe it would be an idea to try +and escape... + +Note that this package only contains game-data. The game engine is +provided by ScummVM.") + (license (license:non-copyleft "file:///README")))) + (define-public gnurobots (package (name "gnurobots") -- 2.24.1 --=-=-=-- From unknown Sat Jul 26 21:33:02 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#38805] [PATCH] Add lure. Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 03 Feb 2020 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38805 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38805@debbugs.gnu.org Received: via spool by 38805-submit@debbugs.gnu.org id=B38805.15807475225748 (code B ref 38805); Mon, 03 Feb 2020 16:33:02 +0000 Received: (at 38805) by debbugs.gnu.org; 3 Feb 2020 16:32:02 +0000 Received: from localhost ([127.0.0.1]:42161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyedm-0001Ue-KI for submit@debbugs.gnu.org; Mon, 03 Feb 2020 11:32:02 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:39321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyedk-0001UE-IU for 38805@debbugs.gnu.org; Mon, 03 Feb 2020 11:32:01 -0500 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 84C2524000A for <38805@debbugs.gnu.org>; Mon, 3 Feb 2020 16:31:58 +0000 (UTC) From: Nicolas Goaziou References: <87r20mzi2b.fsf@nicolasgoaziou.fr> Date: Mon, 03 Feb 2020 17:31:48 +0100 In-Reply-To: <87r20mzi2b.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Mon, 30 Dec 2019 03:02:52 +0100") Message-ID: <87r1zb7hu3.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Nicolas Goaziou writes: > The following patch adds Lure of the Temptress game, in several > languages. > > There is a single game, but the files cannot live in the same directory, > and you probably never want to use more than one language. Therefore, > I abused the outputs mechanism: each output is a language, "out" being > the default English language. > > According to #guix, this is not a good way to use outputs, but I don't > know how to do better. So, here is the patch! Gentle ping. I would appreciate some feedback, notably about the somewhat exotic use of outputs (some packages are also creative with outputs). From unknown Sat Jul 26 21:33:02 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#38805] [PATCH] Add lure. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 06 Feb 2020 19:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38805 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nicolas Goaziou Cc: 38805@debbugs.gnu.org Received: via spool by 38805-submit@debbugs.gnu.org id=B38805.15810180359244 (code B ref 38805); Thu, 06 Feb 2020 19:41:02 +0000 Received: (at 38805) by debbugs.gnu.org; 6 Feb 2020 19:40:35 +0000 Received: from localhost ([127.0.0.1]:48476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izn0t-0002P2-9i for submit@debbugs.gnu.org; Thu, 06 Feb 2020 14:40:35 -0500 Received: from flashner.co.il ([178.62.234.194]:47490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izn0r-0002Oq-Pi for 38805@debbugs.gnu.org; Thu, 06 Feb 2020 14:40:34 -0500 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id 727234027D; Thu, 6 Feb 2020 19:40:27 +0000 (UTC) Date: Thu, 6 Feb 2020 21:39:56 +0200 From: Efraim Flashner Message-ID: <20200206193956.GD7827@E5400> References: <87r20mzi2b.fsf@nicolasgoaziou.fr> <87r1zb7hu3.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="osDK9TLjxFScVI/L" Content-Disposition: inline In-Reply-To: <87r1zb7hu3.fsf@nicolasgoaziou.fr> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --osDK9TLjxFScVI/L Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 03, 2020 at 05:31:48PM +0100, Nicolas Goaziou wrote: > Nicolas Goaziou writes: >=20 > > The following patch adds Lure of the Temptress game, in several > > languages.=20 > > > > There is a single game, but the files cannot live in the same directory, > > and you probably never want to use more than one language. Therefore, > > I abused the outputs mechanism: each output is a language, "out" being > > the default English language. > > > > According to #guix, this is not a good way to use outputs, but I don't > > know how to do better. So, here is the patch! >=20 > Gentle ping.=20 >=20 > I would appreciate some feedback, notably about the somewhat exotic use > of outputs (some packages are also creative with outputs). I think for people looking for the game in other languages finding it as game-lang would be easier than as a separate output. So my vote would be different packages, assumably all inheriting from the english one. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --osDK9TLjxFScVI/L Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl48a4gACgkQQarn3Mo9 g1Hifg//Ynf3im/enWFUZMTYhny4wZPWeAfAwASiSemPpYZGn6MDUIiG8IkJ6t53 mmpB4lNuseELrk8FH924ntnvA0ISkaXCS9OsR4Zx2k7eaPeow1i1HTc8bt65D5Co 4uswQG3ikBHZmSvE1r+Cl+Wd3wOMUnyoBYUPkJk6+/LStQXFMaZyZCWM6VzMXCqY dx2vf+xOhZ1lcHyHsNzBZdvp4QrousTRlOrO3XmhyccNey3saYvzvyXv9wMSufPe wc+ctxWOUEnPcvX1+h/Y9kyDB5iiR2r+Ca29VHnejM39UtSSBZ885awzSRMvyk5U qtk8q72B1XRByxL7SrCBMfdMY4B+Hq0A9ZnjwYigEA4Dj8Hu8K5nC+wO5GEdsa5l RXE9kBxTZEYg/hiDryYnyb1kImWuQXWBtg3ZLImBBK0R3lLFHscxd3FbAgNTBjNB OqQbVO5BRMbik6RmS+C92xusWAXE98VeeWayIryM203fYREm4cYCwRDjEM9AGy89 w1Zl/9C4fBHn02M3dYlIqzr1q9EMHrNA/edvKTQ+EIScXYgPuico1P5zoujDfMfr Yt9dYwTNH2U9jeNmKWBs3rnMpev6XP3GXzNq7kosCgwKlbq+J4XLpl4vc6pGtlLn BjcxE9FBlMpkFiuL+2Ja6KRPYZZc45qEn0rm7WMukIPyOa42+kE= =cr8w -----END PGP SIGNATURE----- --osDK9TLjxFScVI/L-- From unknown Sat Jul 26 21:33:02 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#38805] [PATCH] Add lure. Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 10 Feb 2020 01:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38805 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner Cc: 38805@debbugs.gnu.org Received: via spool by 38805-submit@debbugs.gnu.org id=B38805.158129915830142 (code B ref 38805); Mon, 10 Feb 2020 01:46:02 +0000 Received: (at 38805) by debbugs.gnu.org; 10 Feb 2020 01:45:58 +0000 Received: from localhost ([127.0.0.1]:53506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0y97-0007q6-QS for submit@debbugs.gnu.org; Sun, 09 Feb 2020 20:45:58 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:49267) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0y94-0007pw-Jp for 38805@debbugs.gnu.org; Sun, 09 Feb 2020 20:45:55 -0500 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 8780B240005; Mon, 10 Feb 2020 01:45:52 +0000 (UTC) From: Nicolas Goaziou References: <87r20mzi2b.fsf@nicolasgoaziou.fr> <87r1zb7hu3.fsf@nicolasgoaziou.fr> <20200206193956.GD7827@E5400> Date: Mon, 10 Feb 2020 02:45:51 +0100 In-Reply-To: <20200206193956.GD7827@E5400> (Efraim Flashner's message of "Thu, 6 Feb 2020 21:39:56 +0200") Message-ID: <871rr3z034.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Hello, Efraim Flashner writes: > I think for people looking for the game in other languages finding it as > game-lang would be easier than as a separate output. So my vote would be > different packages, assumably all inheriting from the english one. Thank you for the review! Unfortunately, inheritance doesn't cut it, as I need to parametrize the localized packages. What do you think about the following update? Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-lure.patch Content-Description: Add lure >From 8a22035948190f63d941cd8e51b69bf4a37bdca3 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 30 Dec 2019 02:43:59 +0100 Subject: [PATCH] gnu: Add lure. * gnu/packages/games.scm (make-lure-package): (lure): (lure-de): (lure-es): (lure-fr): (lure-it): New variables. --- gnu/packages/games.scm | 111 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 78e0042aac..e9543679cd 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -7730,6 +7730,117 @@ the World and demonstrating that he is even more evil than his brother Vlad.") ;; Drascula uses a BSD-like license. (license (license:non-copyleft "file:///readme.txt")))) +(define (make-lure-package name language hash) + (package + (name name) + (version "1.1") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/scummvm/extras/" + "Lure%20of%20the%20Temptress/" + name "-" version ".zip")) + (sha256 + (base32 hash)))) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let* ((out (assoc-ref %outputs "out")) + (share (string-append out "/share/lure"))) + (let ((unzip (string-append (assoc-ref %build-inputs "unzip") + "/bin/unzip"))) + (invoke unzip "-j" (assoc-ref %build-inputs "source"))) + (let ((doc (string-append out "/share/doc/lure-" ,version))) + (for-each (lambda (f) (install-file f doc)) + (find-files "." "\\.(txt|PDF|pdf)$"))) + (for-each (lambda (f) + (install-file f (string-append share "/" ,language))) + (find-files "." "\\.(vga|VGA)$")) + (let* ((bin (string-append out "/bin")) + (apps (string-append out "/share/applications")) + (executable (string-append bin "/" ,name)) + (bash (assoc-ref %build-inputs "bash")) + (scummvm (assoc-ref %build-inputs "scummvm"))) + ;; Build the executable. + (mkdir-p bin) + (with-output-to-file executable + (lambda () + (format #t "#!~a/bin/bash~%" bash) + (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%" + scummvm + ,language + (string-append share "/" ,language)))) + (chmod executable #o755) + ;; Create desktop file. There is no dedicated + ;; icon for the game, so we borrow SCUMMVM's. + (mkdir-p apps) + (with-output-to-file (string-append apps "/" ,name ".desktop") + (lambda _ + (format #t + "[Desktop Entry]~@ + Name=Lure of the Temptress~@ + GenericName=Lure~@ + Exec=~a~@ + Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@ + Categories=AdventureGame;Game;RolePlaying;~@ + Keywords=game;adventure;roleplaying;2D,fantasy;~@ + Comment=Classic 2D point and click adventure game~@ + Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@ + Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@ + Comment[it]=Gioco classico di avventura punta e clicca 2D~@ + Type=Application~%" + executable scummvm)))) + #t)))) + (native-inputs + `(("bash" ,bash) + ("unzip" ,unzip))) + (inputs + `(("scummvm" ,scummvm))) + (home-page "https://www.scummvm.org") + (synopsis "2D point and click fantasy adventure game") + (description + "You are Diermot, an unwilling hero who'd prefer a quiet life, and are, +to all intents and purposes, a good man. After decades of unrest the King has +united the warring factions in his kingdom and all his lands are at peace, +except a remote region around a town called Turnvale. A revolt has recently +taken place in Turnvale, a revolt orchestrated by an apprentice sorceress +called Selena, the titular temptress. The king calls together his finest +horsemen and heads off (with you in tow) to Turnvale just to witness how +hellish mercenary monsters called Skorl are invading the town. + +The king's men are defeated, the king is killed and you fall of your horse and +bang your head heavily on the ground. You have been *unconscious for a while +when you realize that you are in a dingy cell guarded by a not so friendly +Skorl. Maybe it would be an idea to try and escape... + +Note that this package only contains game-data. The game engine is provided +by ScummVM.") + (license (license:non-copyleft "file:///README")))) + +(define-public lure + (make-lure-package + "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk")) + +(define-public lure-de + (make-lure-package + "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy")) + +(define-public lure-es + (make-lure-package + "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk")) + +(define-public lure-fr + (make-lure-package + "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9")) + +(define-public lure-it + (make-lure-package + "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj")) + (define-public gnurobots (package (name "gnurobots") -- 2.25.0 --=-=-=-- From unknown Sat Jul 26 21:33:02 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#38805] [PATCH] Add lure. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 10 Feb 2020 07:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38805 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nicolas Goaziou Cc: 38805@debbugs.gnu.org Received: via spool by 38805-submit@debbugs.gnu.org id=B38805.158131969629535 (code B ref 38805); Mon, 10 Feb 2020 07:29:02 +0000 Received: (at 38805) by debbugs.gnu.org; 10 Feb 2020 07:28:16 +0000 Received: from localhost ([127.0.0.1]:53609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j13UO-0007gJ-2H for submit@debbugs.gnu.org; Mon, 10 Feb 2020 02:28:16 -0500 Received: from flashner.co.il ([178.62.234.194]:37890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j13UM-0007g1-Mc for 38805@debbugs.gnu.org; Mon, 10 Feb 2020 02:28:15 -0500 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id EA3D04015E; Mon, 10 Feb 2020 07:28:05 +0000 (UTC) Date: Mon, 10 Feb 2020 09:27:34 +0200 From: Efraim Flashner Message-ID: <20200210072734.GB9296@E5400> References: <87r20mzi2b.fsf@nicolasgoaziou.fr> <87r1zb7hu3.fsf@nicolasgoaziou.fr> <20200206193956.GD7827@E5400> <871rr3z034.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xgyAXRrhYN0wYx8y" Content-Disposition: inline In-Reply-To: <871rr3z034.fsf@nicolasgoaziou.fr> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --xgyAXRrhYN0wYx8y Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Just a couple of formatting suggestions, otherwise it looks good! On Mon, Feb 10, 2020 at 02:45:51AM +0100, Nicolas Goaziou wrote: > Hello, >=20 > Efraim Flashner writes: >=20 > > I think for people looking for the game in other languages finding it as > > game-lang would be easier than as a separate output. So my vote would be > > different packages, assumably all inheriting from the english one. >=20 > Thank you for the review! >=20 > Unfortunately, inheritance doesn't cut it, as I need to parametrize the > localized packages. >=20 > What do you think about the following update? >=20 > Regards, >=20 > --=20 > Nicolas Goaziou > From 8a22035948190f63d941cd8e51b69bf4a37bdca3 Mon Sep 17 00:00:00 2001 > From: Nicolas Goaziou > Date: Mon, 30 Dec 2019 02:43:59 +0100 > Subject: [PATCH] gnu: Add lure. >=20 > * gnu/packages/games.scm (make-lure-package): > (lure): > (lure-de): > (lure-es): > (lure-fr): > (lure-it): New variables. I would do it as (lure, lure-de, lure-es, lure-fr, lure-it): New variables. > --- > gnu/packages/games.scm | 111 +++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 111 insertions(+) >=20 > diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm > index 78e0042aac..e9543679cd 100644 > --- a/gnu/packages/games.scm > +++ b/gnu/packages/games.scm > @@ -7730,6 +7730,117 @@ the World and demonstrating that he is even more = evil than his brother Vlad.") > ;; Drascula uses a BSD-like license. > (license (license:non-copyleft "file:///readme.txt")))) > =20 > +(define (make-lure-package name language hash) > + (package > + (name name) > + (version "1.1") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "mirror://sourceforge/scummvm/extras/" > + "Lure%20of%20the%20Temptress/" > + name "-" version ".zip")) > + (sha256 > + (base32 hash)))) > + (build-system trivial-build-system) > + (arguments > + `(#:modules ((guix build utils)) > + #:builder > + (begin > + (use-modules (guix build utils)) > + (let* ((out (assoc-ref %outputs "out")) > + (share (string-append out "/share/lure"))) IMO you should have share as out/share, it allows for easier reuse of the variable. > + (let ((unzip (string-append (assoc-ref %build-inputs "unzip") > + "/bin/unzip"))) > + (invoke unzip "-j" (assoc-ref %build-inputs "source"))) > + (let ((doc (string-append out "/share/doc/lure-" ,version))) > + (for-each (lambda (f) (install-file f doc)) > + (find-files "." "\\.(txt|PDF|pdf)$"))) > + (for-each (lambda (f) > + (install-file f (string-append share "/" ,languag= e))) > + (find-files "." "\\.(vga|VGA)$")) I would move the following let variables to the top let and leave the other two (unzip, doc) as you have them. > + (let* ((bin (string-append out "/bin")) > + (apps (string-append out "/share/applications")) > + (executable (string-append bin "/" ,name)) > + (bash (assoc-ref %build-inputs "bash")) > + (scummvm (assoc-ref %build-inputs "scummvm"))) > + ;; Build the executable. > + (mkdir-p bin) > + (with-output-to-file executable > + (lambda () > + (format #t "#!~a/bin/bash~%" bash) > + (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%" > + scummvm > + ,language > + (string-append share "/" ,language)))) > + (chmod executable #o755) > + ;; Create desktop file. There is no dedicated > + ;; icon for the game, so we borrow SCUMMVM's. > + (mkdir-p apps) > + (with-output-to-file (string-append apps "/" ,name ".deskto= p") > + (lambda _ > + (format #t > + "[Desktop Entry]~@ > + Name=3DLure of the Temptress~@ > + GenericName=3DLure~@ > + Exec=3D~a~@ > + Icon=3D~a/share/icons/hicolor/scalable/apps/scummvm= =2Esvg~@ > + Categories=3DAdventureGame;Game;RolePlaying;~@ > + Keywords=3Dgame;adventure;roleplaying;2D,fantasy;~@ > + Comment=3DClassic 2D point and click adventure game= ~@ > + Comment[de]=3Dklassisches 2D-Abenteuerspiel in Zeig= en-und-Klicken-Manier~@ > + Comment[fr]=3DJeu classique d'aventure pointer-et-c= liquer en 2D~@ > + Comment[it]=3DGioco classico di avventura punta e c= licca 2D~@ > + Type=3DApplication~%" > + executable scummvm)))) > + #t)))) > + (native-inputs > + `(("bash" ,bash) > + ("unzip" ,unzip))) > + (inputs > + `(("scummvm" ,scummvm))) > + (home-page "https://www.scummvm.org") > + (synopsis "2D point and click fantasy adventure game") > + (description > + "You are Diermot, an unwilling hero who'd prefer a quiet life, and = are, > +to all intents and purposes, a good man. After decades of unrest the Ki= ng has > +united the warring factions in his kingdom and all his lands are at peac= e, > +except a remote region around a town called Turnvale. A revolt has rece= ntly > +taken place in Turnvale, a revolt orchestrated by an apprentice sorceress > +called Selena, the titular temptress. The king calls together his finest > +horsemen and heads off (with you in tow) to Turnvale just to witness how > +hellish mercenary monsters called Skorl are invading the town. > + > +The king's men are defeated, the king is killed and you fall of your hor= se and > +bang your head heavily on the ground. You have been *unconscious for a = while > +when you realize that you are in a dingy cell guarded by a not so friend= ly > +Skorl. Maybe it would be an idea to try and escape... > + > +Note that this package only contains game-data. The game engine is prov= ided > +by ScummVM.") > + (license (license:non-copyleft "file:///README")))) > + > +(define-public lure > + (make-lure-package > + "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk")) > + > +(define-public lure-de > + (make-lure-package > + "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"= )) > + > +(define-public lure-es > + (make-lure-package > + "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"= )) > + > +(define-public lure-fr > + (make-lure-package > + "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"= )) > + > +(define-public lure-it > + (make-lure-package > + "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"= )) > + > (define-public gnurobots > (package > (name "gnurobots") > --=20 > 2.25.0 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --xgyAXRrhYN0wYx8y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl5BBeMACgkQQarn3Mo9 g1FW7A//biqfy2ce+1wLr6ssqtyi1aqRAuvMJndRYlKQZar8vTZ4edfI2HluELWK zsBnwYQizGDyFK9nQOir/a557VGDhSmZ4wmj/uBIucDO9IXDD0PBv9axeF4FKcBO LPlg1RLdhKRy+4iyq1n891s0Jjkz0rvhl4c7NgcPG3m0x9ZvQUVb6Pi9/mGW6T/7 s60SdjAWoadXYPhGisS86X8DdkiwVg51O5FsmuInhkvwqQGYWq18OH7Tl7wgPSgs 6ADZLU2q1lkYf7zX6yd12PgPvhcAitKGymD2hRfOEs1bY/fbp9ZYL7AdlqNP0/h2 aJ3NkAsNEdFslPik7iFakxqDJ6h+UwNSmiCrUvT9ABX7WM17yl0vYqIdHerrl4g1 JIQ6qAbU+AGCd86Tz9s3ZsX4pWUkthPLmZ2l+HsP9qm/qof445E4uTFtKADYTImt tNFTHMKcAOOhsOwZGXFwr5l+Ez0ZdHYo1n8PKOf6n1WARvDx1dgAx6MGnVRIHHIL BBMiQUCmHiUxhyU4QV5qcvj4sZFXh5xxiVcHzBLPepljcdWlorKyQEQ8Nc5+86Kf gvHaFMtPBtSVzZC2sq64E8asPl6YcOfeg/vRMMX5UeKxCcVUhE9CxJz/lWqmWOwK R7dPnihLkgKIc7UuhYhqHnDQ2J3DlPILZF53CP5Nn5Dr1SYbbOE= =mcpW -----END PGP SIGNATURE----- --xgyAXRrhYN0wYx8y-- From unknown Sat Jul 26 21:33:02 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Nicolas Goaziou Subject: bug#38805: closed (Re: [bug#38805] [PATCH] Add lure.) Message-ID: References: <87wo8uydl0.fsf@nicolasgoaziou.fr> <87r20mzi2b.fsf@nicolasgoaziou.fr> X-Gnu-PR-Message: they-closed 38805 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 38805@debbugs.gnu.org Date: Mon, 10 Feb 2020 09:53:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1581328382-18235-1" This is a multi-part message in MIME format... ------------=_1581328382-18235-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #38805: [PATCH] Add lure. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 38805@debbugs.gnu.org. --=20 38805: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D38805 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1581328382-18235-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 38805-done) by debbugs.gnu.org; 10 Feb 2020 09:52:03 +0000 Received: from localhost ([127.0.0.1]:53714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j15jX-0004is-4d for submit@debbugs.gnu.org; Mon, 10 Feb 2020 04:52:03 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:47845) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j15jU-0004iP-Hs for 38805-done@debbugs.gnu.org; Mon, 10 Feb 2020 04:52:01 -0500 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 3355024000B; Mon, 10 Feb 2020 09:51:55 +0000 (UTC) From: Nicolas Goaziou To: Efraim Flashner Subject: Re: [bug#38805] [PATCH] Add lure. References: <87r20mzi2b.fsf@nicolasgoaziou.fr> <87r1zb7hu3.fsf@nicolasgoaziou.fr> <20200206193956.GD7827@E5400> <871rr3z034.fsf@nicolasgoaziou.fr> <20200210072734.GB9296@E5400> Date: Mon, 10 Feb 2020 10:51:55 +0100 In-Reply-To: <20200210072734.GB9296@E5400> (Efraim Flashner's message of "Mon, 10 Feb 2020 09:27:34 +0200") Message-ID: <87wo8uydl0.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 38805-done Cc: 38805-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Efraim Flashner writes: > Just a couple of formatting suggestions, otherwise it looks good! I addressed your remarks, tweaked the description a bit, and pushed the packages as e7db97db6353d631e9319360a17d9b26fc8d0bc0. Let me know if there's something else to fix. Thank you again. Regards, -- Nicolas Goaziou ------------=_1581328382-18235-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 30 Dec 2019 02:03:04 +0000 Received: from localhost ([127.0.0.1]:60390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilkOd-0004iU-TQ for submit@debbugs.gnu.org; Sun, 29 Dec 2019 21:03:04 -0500 Received: from lists.gnu.org ([209.51.188.17]:55720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilkOb-0004hp-W2 for submit@debbugs.gnu.org; Sun, 29 Dec 2019 21:03:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34583) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilkOa-0004RZ-8q for guix-patches@gnu.org; Sun, 29 Dec 2019 21:03:01 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilkOY-0005Rz-3J for guix-patches@gnu.org; Sun, 29 Dec 2019 21:02:59 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:41551) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ilkOW-0005QY-CS for guix-patches@gnu.org; Sun, 29 Dec 2019 21:02:58 -0500 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 85124240003 for ; Mon, 30 Dec 2019 02:02:53 +0000 (UTC) From: Nicolas Goaziou To: guix-patches@gnu.org Subject: [PATCH] Add lure. Date: Mon, 30 Dec 2019 03:02:52 +0100 Message-ID: <87r20mzi2b.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.193 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain Hello, The following patch adds Lure of the Temptress game, in several languages. There is a single game, but the files cannot live in the same directory, and you probably never want to use more than one language. Therefore, I abused the outputs mechanism: each output is a language, "out" being the default English language. According to #guix, this is not a good way to use outputs, but I don't know how to do better. So, here is the patch! Feedback welcome, of course! Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-lure.patch Content-Description: Add lure >From 58661856821647e04bad8c9fdf82e3eee774a06f Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 30 Dec 2019 02:43:59 +0100 Subject: [PATCH] gnu: Add lure. * gnu/packages/games.scm (lure): New variable. --- gnu/packages/games.scm | 159 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 80ea82c123..61beb5fa77 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -7635,6 +7635,165 @@ the World and demonstrating that he is even more evil than his brother Vlad.") ;; Drascula uses a BSD-like license. (license (license:non-copyleft "file:///readme.txt")))) +(define-public lure + (package + (name "lure") + (version "1.1") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/scummvm/extras/" + "Lure%20of%20the%20Temptress/" + "lure-" version ".zip")) + (sha256 + (base32 "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk")))) + (outputs '("out" "de" "es" "fr" "it")) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let* ((scummvm (assoc-ref %build-inputs "scummvm")) + (unzip (string-append (assoc-ref %build-inputs "unzip") + "/bin/unzip")) + (make-executable-and-desktop-file + (lambda (name output language) + (let* ((bin (string-append output "/bin")) + (apps (string-append output "/share/applications")) + (executable (string-append bin "/" name)) + (bash (assoc-ref %build-inputs "bash")) + (scummvm (assoc-ref %build-inputs "scummvm"))) + ;; Build the executable. + (mkdir-p bin) + (with-output-to-file executable + (lambda () + (format #t "#!~a/bin/bash~%" bash) + (format #t + "exec ~a/bin/scummvm -q ~a -p ~a lure~%" + scummvm + language + (string-append output "/share/lure/" + language)))) + (chmod executable #o755) + ;; Create desktop file. There is no dedicated + ;; icon for the game, so we borrow SCUMMVM's. + (mkdir-p apps) + (with-output-to-file (string-append apps "/" name ".desktop") + (lambda _ + (format #t + "[Desktop Entry]~@ + Name=Lure of the Temptress~@ + GenericName=Lure~@ + Exec=~a~@ + Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@ + Categories=AdventureGame;Game;RolePlaying;~@ + Keywords=game;adventure;roleplaying;2D,fantasy;~@ + Comment=Classic 2D point and click adventure game~@ + Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@ + Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@ + Comment[it]=Gioco classico di avventura punta e clicca 2D~@ + Type=Application~%" + executable scummvm))))))) + ;; Main output: English language. + (let* ((out (assoc-ref %outputs "out")) + (share (string-append out "/share/lure")) + (doc (string-append out "/share/doc/lure-" ,version))) + (invoke unzip "-j" (assoc-ref %build-inputs "source")) + (for-each (lambda (f) (install-file f doc)) + (find-files "." "\\.(txt|PDF|pdf)$")) + (for-each (lambda (f) (install-file f (string-append share "/en"))) + (find-files "." "\\.vga$")) + (make-executable-and-desktop-file "lure" out "en")) + ;; Install additional languages. + (for-each + (lambda (lang) + (let* ((source (string-append "lure-" lang)) + (output (assoc-ref %outputs lang)) + (doc (string-append output "/share/doc/lure-" ,version)) + (directory (string-append output "/share/lure/" lang))) + (mkdir-p directory) + (invoke + unzip + "-j" (assoc-ref %build-inputs source) + "-x" "*/README" "*/*.txt" "*/*.EXE" "*/*.exe" "*/PROTECT.*" + "-d" directory) + (mkdir-p doc) + (rename-file (string-append directory "/Manual.pdf") + (string-append doc "/Manual-" lang ".pdf")) + (make-executable-and-desktop-file (string-append "lure-" lang) + output + lang))) + '("de" "es" "fr" "it")) + #t)))) + (native-inputs + `(("bash" ,bash) + ("unzip" ,unzip))) + (inputs + `(("scummvm" ,scummvm) + ("lure-de" + ,(origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/scummvm/extras/" + "Lure%20of%20the%20Temptress/" + "lure-de-" version ".zip")) + (sha256 + (base32 "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy")))) + ("lure-es" + ,(origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/scummvm/extras/" + "Lure%20of%20the%20Temptress/" + "lure-es-" version ".zip")) + (sha256 + (base32 "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk")))) + ("lure-fr" + ,(origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/scummvm/extras/" + "Lure%20of%20the%20Temptress/" + "lure-fr-" version ".zip")) + (sha256 + (base32 "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9")))) + ("lure-it" + ,(origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/scummvm/extras/" + "Lure%20of%20the%20Temptress/" + "lure-it-" version ".zip")) + (sha256 + (base32 "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj")))))) + (home-page "https://www.scummvm.org") + (synopsis "2D point and click fantasy adventure game") + (description "Lure of the Temptress was Revolution's very first +adventure game and work began on it in 1989, even before Revolution's +inception as an actual games development company. + +You are Diermot, an unwilling hero who'd prefer a quiet life, and are, +to all intents and purposes, a good man. After decades of unrest the +King has united the warring factions in his kingdom and all his lands +are at peace, except a remote region around a town called Turnvale. +A revolt has recently taken place in Turnvale, a revolt orchestrated +by an apprentice sorceress called Selena, the titular temptress. The +king calls together his finest horsemen and heads off (with you in +tow) to Turnvale just to witness how hellish mercenary monsters called +Skorl are invading the town. + +The king's men are defeated, the king is killed and you fall of your +horse and bang your head heavily on the ground. You have been +*unconscious for a while when you realize that you are in a dingy cell +guarded by a not so friendly Skorl. Maybe it would be an idea to try +and escape... + +Note that this package only contains game-data. The game engine is +provided by ScummVM.") + (license (license:non-copyleft "file:///README")))) + (define-public gnurobots (package (name "gnurobots") -- 2.24.1 --=-=-=-- ------------=_1581328382-18235-1--