From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0OD0NtHiJWS98wAASxT56A (envelope-from ) for ; Thu, 30 Mar 2023 21:28:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QFwUNtHiJWTNxgAAG6o9tA (envelope-from ) for ; Thu, 30 Mar 2023 21:28:17 +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 954C530E5 for ; Thu, 30 Mar 2023 21:28:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phxwK-0007QF-9B; Thu, 30 Mar 2023 15:28:04 -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 1phxwJ-0007Py-6L for guix-patches@gnu.org; Thu, 30 Mar 2023 15:28:03 -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 1phxwI-00021j-Um for guix-patches@gnu.org; Thu, 30 Mar 2023 15:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phxwI-0002l0-86 for guix-patches@gnu.org; Thu, 30 Mar 2023 15:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62550] [PATCH] gnu: Add alienblaster. Resent-From: Yovan Naumovski Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 Mar 2023 19:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62550 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62550@debbugs.gnu.org Cc: Yovan Naumovski X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168020442510530 (code B ref -1); Thu, 30 Mar 2023 19:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Mar 2023 19:27:05 +0000 Received: from localhost ([127.0.0.1]:59459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phxvN-0002jm-9X for submit@debbugs.gnu.org; Thu, 30 Mar 2023 15:27:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:59166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phxvJ-0002jL-AL for submit@debbugs.gnu.org; Thu, 30 Mar 2023 15:27:04 -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 1phxvI-0007K3-FR for guix-patches@gnu.org; Thu, 30 Mar 2023 15:27:00 -0400 Received: from relay9-d.mail.gandi.net ([2001:4b98:dc4:8::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phxvG-0001nR-3V for guix-patches@gnu.org; Thu, 30 Mar 2023 15:27:00 -0400 Received: (Authenticated sender: yovan@gorski.stream) by mail.gandi.net (Postfix) with ESMTPSA id A3860FF806; Thu, 30 Mar 2023 19:26:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gorski.stream; s=gm1; t=1680204412; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Yy6PCbxpv3c2oqO9HfZoLZ0OHfY8QC6DGpU/cLFoDuM=; b=lRfspo0IO+H9pYSRvZFiZDnHRB2W1sYtd/vzm/I36/ML+SQDdIut0+1L7bbw/VtKIls5WH YbWZK7KbJEH59PINUmrUXA7xYhoBqRic5FgkrnbP+q6IFDKpZm3nRoSWzmluPr7cAVUfDk UkLF3E8m0M6gZyeGzfy8I39NLJJgz2B31LG26ptkHd8VBcXiHVJsV7rGh/qw434xdBQOCx DBvaTEBFj6fHSvlyFB88m3r2+xR+N0dKi+UKy55pIFgCCoX7kxiuAGsz8uraChgtITtyjT SpgwZSamR2WA8uxFEPkDISCY9kZlV7JU71F35BB/tZZmMdoFSFJtCVwSBiAqQA== Date: Thu, 30 Mar 2023 22:26:29 +0300 Message-Id: <20230330192629.31655-1-yovan@gorski.stream> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:4b98:dc4:8::229; envelope-from=yovan@gorski.stream; helo=relay9-d.mail.gandi.net X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=1.999, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_PDS_OTHER_BAD_TLD=0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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: Yovan Naumovski X-ACL-Warn: , Yovan Naumovski via Guix-patches From: Yovan Naumovski 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680204497; a=rsa-sha256; cv=none; b=rOUvMwtWRFmXGRsLPpCxjORIwy/AriECCeDAjxwZTbCVggWqEKLf/cs0c2pVSXDwUd6tmz fmgwTumpDjQg3SM92u62+z+/O0ygoJ9gEVHdXg8wMYgPrVP4rNnNnPX8tMYlFd8i2OzL6T /iEg5uGCgGXRinuC2TPL4Fhz30fb3xY//O2bNmNYslXRNzdnlo4vJoe9xO0JAm1Sgxg/Dj k/o/vdCcVkHNythAnRv6vdJW+0CLsGZcr6+B7Pywk6dw0eu4l5dwjHzFnodY6smRnLfUC4 7xFGLTdVd2xXNbIBIfQXTmFoaOFc5yRgwxBzZ6KCOQQukoTlK9BG36EBNtaO7g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gorski.stream header.s=gm1 header.b=lRfspo0I; 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=1680204497; 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-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Yy6PCbxpv3c2oqO9HfZoLZ0OHfY8QC6DGpU/cLFoDuM=; b=nPkQma/PeqCOXYyCCTrkO0caWbcY0Xq7/7P5C02H6MifqLVhHnBg0291Xw7c0QlhJRZIbW SYnPezmuqx93R5zqOSRaFQa9RCAdan6IyQVdATb3Q1V/aJ57Ja4lGKxh46pZJjxp/q8lt3 C2U4m60bjddkNDZ5pLn3bPrCsLR8g5fzizEwgrJJvfAtKmHChxI0qWB+GUsqZk0vtxIb/R xZWldG7OSrxr82xKp6LxESgkx5ZII7ICbwt3qtA6CCU+Xm5Jnp5rvuC6liVlyRQ6yy3Eex 4T2nXcGlXD07oN/4Mqyi4Ma9EUWt81JlXq86YNb33MHtEyNKgIfHoPzbAcuo8Q== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gorski.stream header.s=gm1 header.b=lRfspo0I; 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" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.52 X-Spam-Score: -3.52 X-Migadu-Queue-Id: 954C530E5 X-TUID: iO6E9uJkuX93 * gnu/packages/games.scm (alienblaster): New variable. --- gnu/packages/games.scm | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 5825b8d936..be42a6a51a 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -3705,6 +3705,64 @@ (define-public mars match, cannon keep, and grave-itation pit.") (license license:gpl3+)))) +(define-public alienblaster + (package + (name "alienblaster") + (version "1.1.0") + (source + (origin + (method url-fetch) + (uri (string-append "http://www.schwardtnet.de/alienblaster/archives/" + name "-" version ".tgz")) + (sha256 + (base32 + "104rfsfsv446n4y52p5zw9h8mhgjyrbca8fpyhnxkkasq141a264")))) + (build-system gnu-build-system) + (inputs (list sdl sdl-mixer)) + (arguments + '(#:tests? #f ;; no tests + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-sdl-paths + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (share (string-append out "/share")) + (sdl-mixer (assoc-ref inputs "sdl-mixer"))) + + ;; fix name and append path to SDL_mixer.h + (substitute* "src/Makefile" + (("GAME_NAME=alienBlaster") + "GAME_NAME=alienblaster") + (("SDL_FLAGS=\\$\\(shell sdl-config --cflags\\)" line) + (string-append line " -I" sdl-mixer "/include/SDL"))) + + ;; substitute relative paths in .cfg and source/header files + (substitute* (find-files "./cfg") + (("(\\./)?images") (string-append share "/images"))) + (substitute* (list "src/global.h" "src/global.cc") + (("./images") (string-append share "/images")) + (("./sound") (string-append share "/sound")) + (("./cfg") (string-append share "/cfg")))))) + + (delete 'configure) + + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin"))) + (install-file "alienblaster" bin) + (for-each + (lambda (dir) + (copy-recursively dir (string-append out "/share/" dir))) + '("images" "sound" "cfg"))) + #t))))) + (home-page "http://www.schwardtnet.de/alienblaster/") + (synopsis "Action-loaded 2D arcade shooter game") + (description "Alien Blaster is an action-loaded 2D arcade shooter +game. Your mission in the game is simple: stop the invasion of the aliens by +blasting them. Simultaneous two-player mode is available.") + (license license:gpl2))) + (define glkterm (package (name "glkterm") -- 2.39.2