Subject: [bug#75619] [PATCH v3 09/11] gnu: Add libretro-database.

From: Maxim Cournoyer <[email-masked]>
Date: Thu, 23 Jan 2025 21:21:45 +0900

* gnu/packages/emulators.scm (libretro-database): New variable.

Change-Id: I97b10abf9b2984cf2a622517b3c794474e98a3d0
---

(no changes since v1)

 gnu/packages/emulators.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
index 58ef76048b..9f03ea6409 100644
--- a/gnu/packages/emulators.scm
+++ b/gnu/packages/emulators.scm
@@ -1806,6 +1806,44 @@ (define-public libretro-core-info
 (define-public retroarch-core-info
   (deprecated-package "retroarch-core-info" libretro-core-info))
 
+(define-public libretro-database
+  (package
+    (name "libretro-database")
+    (version "1.20.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/libretro/libretro-database")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "086a9grpd1irsdns2zx3hlna72bbrmsfra4r498wi4ia9zf8nb0p"))))
+    (build-system gnu-build-system)
+    (arguments (list #:tests? #f
+                     #:make-flags #~(list (string-append "PREFIX=" #$output))))
+    (home-page "https://github.com/libretro/libretro-database/")
+    (synopsis "Cheat codes and content data files for RetroArch")
+    (description "RetroArch incorporates a ROM scanning system to
+automatically produce playlists.  Each ROM that is scanned by the playlist
+generator is checked against a database of ROMs that are known to be good
+copies.  The various directories contain:
+@table @code
+@item cht
+Cheat codes for various games
+@item cursors
+Methods for querying the playlists
+@item dat
+Customized DAT files, maintained by the libretro team
+@item metadat
+Different metadata and third-party DATs available to the system
+@item rdb
+The compiled RetroArch database files
+@item scripts
+Various scripts that are used to maintain the database files.
+@end table")
+    (license license:cc-by-sa4.0)))
+
 (define-public retroarch-joypad-autoconfig
   (package
     (name "retroarch-joypad-autoconfig")
-- 
2.47.1