From 3695857dabaf4836feea40a50fbad46de7c7ffdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Mon, 29 Sep 2025 18:25:11 +0800 Subject: [PATCH] gnu: Add libretro-easyrpg. * gnu/packages/easyrpg.scm (libretro-easyrpg): New variable. Change-Id: I56a873f97b80d9b35331e38929baf13df67c35ac Signed-off-by: Maxim Cournoyer --- gnu/packages/easyrpg.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/easyrpg.scm b/gnu/packages/easyrpg.scm index 751080c33f3..2d227f8956e 100644 --- a/gnu/packages/easyrpg.scm +++ b/gnu/packages/easyrpg.scm @@ -20,9 +20,12 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages easyrpg) + #:use-module (guix gexp) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (gnu packages audio) #:use-module (gnu packages compression) @@ -116,3 +119,37 @@ data.") ;; and WAV audio loader and writer (public-domain): ;; src/external/dr_wav.h (license license:gpl3+))) + +(define-public libretro-easyrpg + (let ((libretro-common + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libretro/libretro-common") + (commit "668749ae38a9e85744d1c15a652a1e8db8ab9e82"))) + (file-name "libretro-common-checkout") + (sha256 + (base32 + "007hd1ys3ikyjx4zigkxl2h0172p7d9p9vj09739yqfkvxkwlbl2"))))) + (package + (inherit easyrpg-player) + (name "libretro-easyrpg") + (source (origin + (inherit (package-source easyrpg-player)) + (modules '((guix build utils))) + (snippet + #~(begin + (copy-recursively #$libretro-common + "builds/libretro/libretro-common"))))) + (build-system cmake-build-system) + (arguments + (list #:tests? #f ;no tests + #:configure-flags #~'("-DPLAYER_TARGET_PLATFORM=libretro") + #:phases + #~(modify-phases %standard-phases + (replace 'install + (lambda _ + (install-file + "easyrpg_libretro.so" + (string-append #$output "/lib/libretro/"))))))) + (synopsis "Libretro core to play RPG Maker 2000 and 2003 games"))))