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 sKASAd4EJ2TdkgAASxT56A (envelope-from ) for ; Fri, 31 Mar 2023 18:05:50 +0200 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 VnakAN4EJ2QL3QAAauVa8A (envelope-from ) for ; Fri, 31 Mar 2023 18:05:50 +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 7999BF16D for ; Fri, 31 Mar 2023 18:05:49 +0200 (CEST) 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 Content-Transfer-Encoding: 8bit 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=1680278749; a=rsa-sha256; cv=none; b=iGICJBIIMOKQUT+toYFKMvqivpIqNp2FttOG0Ong84RvqGKa23jUSt6yv7UBLcFA/2X6fW GxyqaxTvLLH+gcnyixeYXcCHZOI0a37C06G2Qc4qJdmjKszmohUp9pApVL4a8Ewt1QAbvw Ff6TYxioo39yuJDPhICC5vpmbx/DFJxBcIpTF4kAOeURL+qXKakMqotGWrD4mP/fBV+eSL OQWzuVHq7bJ2TTkO0vGS8fyv/GTa3Tn16ESFwA1r3s4die0oDnZ5+SV98yFTaY/tI0YL7g wCua9U7cYuzI6mA+nllHAjutFt+1qr5crJQfoZUGnsVpeF+mEfjj2q9pGMXB3g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gorski.stream header.s=gm1 header.b=LxShCMpw; 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=1680278749; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=4qrJbRfX/c48Ozjss7HYBSfBlEmA9zupJmeNWnwiqaY=; b=azeet2Tsu8WoICSdKIF3r9LZaxXZEa3BD7HC6sOR9y3ylFC5j+29DtQ9CKbjh4Eb5MJqne nOzXU60ai9dC7vZ4wsOet3GC4eot1aSd0RKG0hlHHdhJDWeTcy1AEYecjvWgK5qYQlZ7FQ aUyIAQsw6wYWpuAyCQBQriXnGat6G4e7tp7gNU3Xu9GXCd7olEnuWkwzYgIKXevm2QuwSq 7DbQfNCRwwB3UiVKomng0+89yZVSPhM0IBEgudkZc4pw55/rB66lt9x7rRxnSofAk/+BRv D/hInqcYmoUh4Fh4ecEjqgu/2RzWqOdYAB9hOJ6iaceJZ0Xz80t8FuQXV7Wx3A== X-Migadu-Spam-Score: -3.32 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gorski.stream header.s=gm1 header.b=LxShCMpw; 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-Spam-Score: -3.32 X-Migadu-Queue-Id: 7999BF16D X-TUID: YjXEt1ryMfUZ 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") -- 2.39.2