From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 SJbFLge5JmS90wAASxT56A (envelope-from ) for ; Fri, 31 Mar 2023 12:42:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yDS8LQe5JmToIgAAG6o9tA (envelope-from ) for ; Fri, 31 Mar 2023 12:42:15 +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 89B1942809 for ; Fri, 31 Mar 2023 12:42:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piCCr-0007us-6S; Fri, 31 Mar 2023 06:42:05 -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 1piCCp-0007uQ-Dp for guix-patches@gnu.org; Fri, 31 Mar 2023 06:42: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 1piCCp-0005Om-1D for guix-patches@gnu.org; Fri, 31 Mar 2023 06:42:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1piCCo-0001yo-GN for guix-patches@gnu.org; Fri, 31 Mar 2023 06:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62550] [PATCH] gnu: Add alienblaster. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 31 Mar 2023 10:42: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: Yovan Naumovski Cc: 62550@debbugs.gnu.org Received: via spool by 62550-submit@debbugs.gnu.org id=B62550.16802593007575 (code B ref 62550); Fri, 31 Mar 2023 10:42:02 +0000 Received: (at 62550) by debbugs.gnu.org; 31 Mar 2023 10:41:40 +0000 Received: from localhost ([127.0.0.1]:60447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piCCR-0001y7-SS for submit@debbugs.gnu.org; Fri, 31 Mar 2023 06:41:40 -0400 Received: from smtpm4.myservices.hosting ([185.26.105.235]:58502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piCCQ-0001xy-64 for 62550@debbugs.gnu.org; Fri, 31 Mar 2023 06:41:38 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm4.myservices.hosting (Postfix) with ESMTP id 87AFE20A4A; Fri, 31 Mar 2023 12:41:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 3354A800A4; Fri, 31 Mar 2023 12:41:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id N99cW0P2ROVY; Fri, 31 Mar 2023 12:41:35 +0200 (CEST) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 8C7F7800A0; Fri, 31 Mar 2023 12:41:35 +0200 (CEST) Message-ID: <44ee896c-d97a-456a-bb0d-24dfa3e71b7c@makinata.eu> Date: Fri, 31 Mar 2023 11:41:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Content-Language: en-US References: <20230330192629.31655-1-yovan@gorski.stream> From: Bruno Victal In-Reply-To: <20230330192629.31655-1-yovan@gorski.stream> Content-Type: text/plain; charset=UTF-8 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: , 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=1680259334; a=rsa-sha256; cv=none; b=hBfC1vozNQpMwDOjlWMeM+iVizz/Ewu998WimwmIEEe901D5pbCJBCJmrxG3gS/VJs2fc8 X6Yr650urDsXRsrtezx1+cWLoVjZYwhE8d3FFJ3K4+fs0khQulGmV2/zY4FmxONvRT9PF3 0Uaibg7nBwxbZGBPrJmM2qwZsePI2BxmvIckMZwPqKFYHTMjhhCrRm2NKN45YZgVFaxxmJ DaYEqqS8qro9baGFHtkAdG/bX5PNwQMrfmbh3MtIQFzyPKXRhl8nUExx4FUOuEdxxWhU9t vsJpvB0MSH/4ine5bVIhQeENHqAp8Xn2yv+bkg2BzWljFJHGF1cBDde9IXmmpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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=1680259334; h=from:from:sender:sender: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; bh=+dtGYEYjSnPEXwQczOQbT+DD9H2P6sAgLYSFx1tuAAw=; b=o8PQKvIrNz2jte6uuZk2svqGwZdtHDeff0qOTo4/xfONVefXHR/LYocUM4v36Zpc+tXrwe +UAIN2qUE6TtiieYkvz2tAVg1k3g/3DHj5UpU/6wa03ZOLR2sHXptZUqO4o0envzPTkbQX 55ScrPpBMMgQjAV1+aJrcsDggho1j1kViCTFmRLuSY/adoBvYwwXD0kKqiTbXXz+sAiGR7 bxBJhi87MLTcQp0k8fxbgnLL5SJ4OqHqyrRsLUTumo4UAnquNlfzgZ4T6Zpm/V3LfaiEyM 3m1cdS2v8MSDAaQOW641ZVoDSpc3qzeAJGt9VXwqCmuzp7g/Q8Dp5Y2u5GFkVQ== X-Migadu-Spam-Score: -3.22 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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.22 X-Migadu-Queue-Id: 89B1942809 X-TUID: wt5gLj1OKWxk Hi Yovan, On 2023-03-30 20:26, Yovan Naumovski via Guix-patches via wrote: > + (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))))) You should use G-Expressions here, i.e. (arguments (list #:tests? #f ; no tests #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-sdl-paths (lambda* (#:key inputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (share (string-append #$output "/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")))))) … ) Take a look at the existing packages that use G-Expressions for inspiration. (examples that come to mind are mympd, libavif, autokey, rng-tools, dropwatch, nvme-cli, …) > + (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.") Keep the sentences separated with two spaces between them. (Texinfo syntax) Thanks, Bruno