From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OKJPIcUeEGRB5gAASxT56A (envelope-from ) for ; Tue, 14 Mar 2023 08:14:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YGZKIcUeEGTxBAAAauVa8A (envelope-from ) for ; Tue, 14 Mar 2023 08:14:13 +0100 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 2AB65AFA5 for ; Tue, 14 Mar 2023 08:14:13 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=T8RjKCAb; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678778053; 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=UafwnFLJsdOwKSZsHpPLuAKbwwS+FcboOXwre/Z9EjE=; b=g3cJP39RsoGy+0NaOBWXQHv7ifNfh/zcziQUt0Pw0coaghNmdX4ZSxozyh7C/bDnLu3LoK zL6N3s2ExIk9xEoTkCwYDEsrhkZXluWxyXHz9OS1yP7LuRnHLnojxExqH8VMtQjDbp7Ibu V2CXwuWZdYYWshZRNPTOfUtznH6N0zqe6XWqAiXawdIpKEssafNPLpf3XxReM4P71v2GxI 70ps680BRo2aOgvSVqBjagSs2LvXooPGHOFM6ggDukn5mnrwl3XkwsBrsdKU7Da0y530KE DSFQ4p9ULKBS1M0QjFe+RElqJGSTZkFGRosGhwj53xZej1Vyl0K8djTSjoyKQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=T8RjKCAb; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678778053; a=rsa-sha256; cv=none; b=Y9FEXhU3j0FrUph/x6MVTTpv1w0TCUH2yr/Z03qFgCd2D4Czif4Tn1amZmuFL7d+crlgJI LrbDY+OCgO9rSjzB8q3Evm+PvIj8ArTABxxFlyR+ovppuk5NRYfuvPrY+DZ+cM5nrzw3wz Vkest0aLorZjyayx7gTPp99AnVji10mx7/UCL9zXN+C7dK/9YydlVAmmbZLqiAkMkMbLpH YbrPZuP0ZqEeL9+/ZIiyGkabODLAP/GdtpU7WlIiKFQA1PsO0PtpvtFxBVvfv6NQuzwG5U Tc/coqcPx5WEau7aEk4cxNT25X1/pO1UMPtEjmN0FQq7Ytpj59Akfo2kBjifWw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbyrI-0007Pc-0C; Tue, 14 Mar 2023 03:14:08 -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 1pbyrC-0007PP-Sm for guix-patches@gnu.org; Tue, 14 Mar 2023 03:14:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pbyrC-00079E-97 for guix-patches@gnu.org; Tue, 14 Mar 2023 03:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pbyrC-0008BN-0m for guix-patches@gnu.org; Tue, 14 Mar 2023 03:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62178] [PATCH 5/5] gnu: Add terrarium. References: <00c2af06-fa2f-81d3-e3de-444eaf232732@disroot.org> In-Reply-To: <00c2af06-fa2f-81d3-e3de-444eaf232732@disroot.org> Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 14 Mar 2023 07:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62178 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62178@debbugs.gnu.org Cc: Liliana Marie Prikler , iyzsong@envs.net Received: via spool by 62178-submit@debbugs.gnu.org id=B62178.167877802031416 (code B ref 62178); Tue, 14 Mar 2023 07:14:01 +0000 Received: (at 62178) by debbugs.gnu.org; 14 Mar 2023 07:13:40 +0000 Received: from localhost ([127.0.0.1]:36117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbyqp-0008Ad-PE for submit@debbugs.gnu.org; Tue, 14 Mar 2023 03:13:40 -0400 Received: from knopi.disroot.org ([178.21.23.139]:55294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbyqn-0008AU-JS for 62178@debbugs.gnu.org; Tue, 14 Mar 2023 03:13:38 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id F04884153C; Tue, 14 Mar 2023 08:13:36 +0100 (CET) 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 WomEqbGzk07u; Tue, 14 Mar 2023 08:13:35 +0100 (CET) Message-ID: <7f959aa7-fbc9-d027-da03-7b6a7727274f@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1678778015; bh=UcRzGPFztl4iXg+FsuY7RZESRaVPfwICh+AsK1HNV+0=; h=Date:To:Cc:From:Subject; b=T8RjKCAbg9yg4Ry51gT0AL/iIG+0EbpYfvbdOwGhnNQkLPRb7WSA6LpSFvG3AugqW Ef+huHLNLUTjs/9wUJGs9mV6/UUKKupe+864j8VAP+TrncAt8u+645RvydjKquPivl H1cwgyVDJhAWqmQypDge881KExZX/Zb2SlAEv/ZSoyK6SajM+4DdHCbGE0LZFUr15I J31iynGIeCsF/2+p60nb4Lj1Vw/R+c3UbJ2lVjidgt+DzXW8RMJ4+1BQdIVwSoath2 gxelTQ9zAuzokfYwq2+iFp7u4IaGXkLc3Z+71bg5IizNCQQIUliDj0lXr+o5ViWIBM +MtPndfr5R/lg== Date: Tue, 14 Mar 2023 15:13:32 +0800 MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed 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-Migadu-Queue-Id: 2AB65AFA5 X-Spam-Score: -3.72 X-Migadu-Spam-Score: -3.72 X-Migadu-Scanner: scn0.migadu.com 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-TUID: ZeFQN0XYsNW0 From 914d9ebcaffee24da73bb4d9711c0428ff36feb0 Mon Sep 17 00:00:00 2001 Message-Id: <914d9ebcaffee24da73bb4d9711c0428ff36feb0.1678775193.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Tue, 14 Mar 2023 14:19:59 +0800 Subject: [PATCH 5/5] gnu: Add terrarium. * gnu/packages/games.scm (terrarium): New variable. --- gnu/packages/games.scm | 96 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 2946c787af..adcaba1248 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -618,6 +618,102 @@ (define-public bastet canyons and wait for the long I-shaped block to clear four rows at a time.") (license license:gpl3+))) +(define-public terrarium + (let ((commit "4a489717b2fc53903b934487d7321be4682e4e2b") + (revision "0")) + (package + (name "terrarium") + (version (git-version "0.1.9" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/hydren/terrarium") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xq7kfl7dvvw222kamw1b5paq5p997z8px8ximbz12v0kj62aqjf")) + (modules '((guix build utils))) + (snippet + #~(begin + (for-each + delete-file + '("resources/jack.ttf" ; unlicensed font, probably shareware + "resources/liberation.ttf")) ; bundled font + (for-each + (lambda (file) + (copy-recursively + (string-append "build/linux-gcc-sdl2-release/" file) + (string-append "./" file))) + '("src" + "makefile" + "configure.sh" + "objects.mk" + "sources.mk")) + (rename-file "configure.sh" "configure") + (substitute* "configure" + (("which") "type -p")) + (substitute* "makefile" + (("..LIBS. `sdl2-config --cflags --libs`") + "-lbox2d -lfgeal -lfutil -lgeramun") + (("@echo 'Building target: .@'") + (string-append + "sed -i -e \"s,@DESTDIR@,$(DESTDIR),\"" + " -e \"s,@PREFIX@,$(PREFIX),\"" + " -e \"s,@FONT_DIR@,$(FONT_DIR),\"" + " src/loading_state.cpp src/main.cpp" + " src/options_menu_state.cpp src/main_menu_state.cpp\n\t" + "@echo 'Building target: $@'")) + (("clean:") + (string-append + "install: terrarium\n\t" + "install -d $(DESTDIR)$(PREFIX)/share\n\t" + "cp -r resources $(DESTDIR)$(PREFIX)/share\n\t" + "install -d $(DESTDIR)$(PREFIX)/bin\n\t" + "install -m 755 terrarium $(DESTDIR)$(PREFIX)/bin\n\n" + "clean:"))) + (substitute* "src/terrarium_game_logic.cpp" + (("config.properties") ".terrarium/config.properties")) + (substitute* "src/main_menu_state.cpp" + (("resources/maps") ".terrarium/maps") + (("resources/chars") ".terrarium/chars") + (("resources/jack.ttf") "@FONT_DIR@/LiberationSans-Bold.ttf") + (("resources/liberation.ttf") + "@FONT_DIR@/LiberationMono-Regular.ttf")) + (substitute* "src/options_menu_state.cpp" + (("resources/jack.ttf") "@FONT_DIR@/LiberationSans-Bold.ttf") + (("resources/liberation.ttf") + "@FONT_DIR@/LiberationMono-Regular.ttf")) + (substitute* '("src/loading_state.cpp" + "src/main.cpp" + "src/main_menu_state.cpp") + (("\\./resources/") "resources/")) + (substitute* '("src/options_menu_state.cpp" + "src/loading_state.cpp" + "src/main_menu_state.cpp" + "src/main.cpp") + (("resources/") "@DESTDIR@@PREFIX@/share/resources/")))))) + (build-system gnu-build-system) + (inputs + (list box2d + fgeal + font-liberation + futil + libgeramun + rapidxml)) + (arguments + (list #:tests? #f ; no tests + #:make-flags + #~(list (string-append "DESTDIR=" #$output) + (string-append "FONT_DIR=" + #$(this-package-input "font-liberation") + "/share/fonts/truetype")))) + (home-page "https://gitlab.com/hydren/terrarium") + (synopsis "Terraria-clone game") + (description "Terrarium is an attempt to do a Terraria clone game, +possibly with some new features.") + (license license:gpl2+)))) + (define-public tetrinet (package (name "tetrinet") -- 2.39.2