From patchwork Fri Mar 31 16:03:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yovan Naumovski X-Patchwork-Id: 48857 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 9581A172D1; Fri, 31 Mar 2023 17:05:50 +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 7F2E6172C9 for ; Fri, 31 Mar 2023 17:05:49 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piHFi-0007Q6-HK; Fri, 31 Mar 2023 12:05:22 -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 1piHFc-0007Oz-J6 for guix-patches@gnu.org; Fri, 31 Mar 2023 12:05:18 -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 1piHFO-0007sj-Oa for guix-patches@gnu.org; Fri, 31 Mar 2023 12:05:16 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1piHFO-0008RG-CR for guix-patches@gnu.org; Fri, 31 Mar 2023 12:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62550] [PATCH v2] gnu: Add alienblaster. References: <20230330192629.31655-1-yovan@gorski.stream> In-Reply-To: <20230330192629.31655-1-yovan@gorski.stream> Resent-From: Yovan Naumovski Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 31 Mar 2023 16:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62550 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62550@debbugs.gnu.org Cc: mirai@makinata.eu, Yovan Naumovski Received: via spool by 62550-submit@debbugs.gnu.org id=B62550.168027865232356 (code B ref 62550); Fri, 31 Mar 2023 16:05:02 +0000 Received: (at 62550) by debbugs.gnu.org; 31 Mar 2023 16:04:12 +0000 Received: from localhost ([127.0.0.1]:34313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piHEZ-0008Pn-KS for submit@debbugs.gnu.org; Fri, 31 Mar 2023 12:04:12 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:50871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piHEW-0008PZ-Qx for 62550@debbugs.gnu.org; Fri, 31 Mar 2023 12:04:10 -0400 Received: (Authenticated sender: yovan@gorski.stream) by mail.gandi.net (Postfix) with ESMTPSA id B2BD3FF803; Fri, 31 Mar 2023 16:04:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gorski.stream; s=gm1; t=1680278642; 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=4qrJbRfX/c48Ozjss7HYBSfBlEmA9zupJmeNWnwiqaY=; b=LxShCMpw7bHJIeb95is3iG0//Fbvr/qrsMplZagxyRs9txu94ezDzkBqACkQhGtxySvltI qArj+ADSRw0OdzVStXoUUZ8DP+ikjXdKtXL2wT/MCFnhjVsC4cmpd5L7nKHaUE59tmxuJF /H3jBTfW3kRqWchMi55AJw1uQ29Kh+E3qE5RsmrKHnUGN388+Si91hhuZ693Rd68WYhpce xL8fPmZohaKq+5xEZ1npDOsdNqARvVyW+bH3sSq88rouErmlW8bv4TUnosRcMz8NmhBmOj EDh21C+7rFArgZ+JoBe4ZoIT5Gzy+7CcXpxPCUfp9ssUstKox+nN5b493lCiuQ== Date: Fri, 31 Mar 2023 19:03:46 +0300 Message-Id: <20230331160346.25800-1-yovan@gorski.stream> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 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 Thank you for your tips and feedback Bruno! * gnu/packages/games.scm (alienblaster): New variable. --- gnu/packages/games.scm | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 5825b8d936..394f68cd50 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -3705,6 +3705,61 @@ (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 + (list + #:tests? #f ; no tests + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-sdl-paths + (lambda _ + (let ((share (string-append #$output "/share"))) + ;; 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 _ + (let ((bin (string-append #$output "/bin"))) + (install-file "alienblaster" bin) + (for-each + (lambda (dir) + (copy-recursively dir (string-append #$output "/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")