From patchwork Thu Mar 30 19:26:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yovan Naumovski X-Patchwork-Id: 48823 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 18A3D17228; Thu, 30 Mar 2023 20:28:20 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4F41E171F5 for ; Thu, 30 Mar 2023 20:28:16 +0100 (BST) 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 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 X-Patchwork-Original-From: Yovan Naumovski via Guix-patches via From: Yovan Naumovski Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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")