all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Evgeny Pisemsky <evgeny@pisemsky.com>
To: Liliana Marie Prikler <liliana.prikler@gmail.com>
Cc: 66597@debbugs.gnu.org
Subject: [bug#66597] [PATCH] gnu: Add sdl2-gamecontrollerdb.
Date: Sat, 21 Oct 2023 01:45:36 +0300	[thread overview]
Message-ID: <87edhoq5f3.fsf@pisemsky.com> (raw)
In-Reply-To: <71339937b94534858a8c4faf638b03f63424b05e.camel@gmail.com> (Liliana Marie Prikler's message of "Tue, 17 Oct 2023 22:04:16 +0200")

[-- Attachment #1: Type: text/plain, Size: 272 bytes --]

Hello!

The share path is not documented anywhere, I just used a package name to construct it.

There is no standard path where this database is expected to be, it must be specified.

I updated the patch with your recommendations and moved the package to the sdl module.


[-- Attachment #2: 0001-gnu-Add-sdl2-gamecontrollerdb.patch --]
[-- Type: text/x-patch, Size: 2494 bytes --]

From 50a639bda381fadd41ed7ba0656cc4d09adb3c9c Mon Sep 17 00:00:00 2001
From: Evgeny Pisemsky <evgeny@pisemsky.com>
Date: Fri, 20 Oct 2023 23:23:23 +0300
Subject: [PATCH] gnu: Add sdl2-gamecontrollerdb.

* gnu/packages/sdl.scm (sdl2-gamecontrollerdb): New variable.
---
 gnu/packages/sdl.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index 11aa5e1602..79f0bd7c08 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -14,6 +14,7 @@
 ;;; Copyright © 2020 Timotej Lazar <timotej.lazar@araneo.si>
 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
 ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2023 Evgeny Pisemsky <evgeny@pisemsky.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -41,6 +42,7 @@ (define-module (gnu packages sdl)
   #:use-module (guix download)
   #:use-module (guix git-download)
   #:use-module (guix utils)
+  #:use-module (guix build-system copy)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system trivial)
   #:use-module (gnu packages audio)
@@ -563,6 +565,31 @@ (define-public sdl2-ttf
        (prepend harfbuzz freetype)))
     (properties '((upstream-name . "SDL2_ttf")))))
 
+(define-public sdl2-gamecontrollerdb
+  (let ((commit "6f3c4edcb5a2e2ed090ca8af40d2c0f00dcd77f6")
+        (revision "0"))
+    (package
+      (name "sdl2-gamecontrollerdb")
+      (version (git-version "0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/gabomdq/SDL_GameControllerDB")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1gciqc8qm2qgcjj5s9jpclznznsp6awl4ldrnj7g01chkcx0l6a3"))))
+      (build-system copy-build-system)
+      (arguments
+       '(#:install-plan '(("gamecontrollerdb.txt" "share/sdl2/"))))
+      (home-page "https://github.com/gabomdq/SDL_GameControllerDB")
+      (synopsis "SDL2 game controller database")
+      (description
+       "This package provides a community sourced database of game controller
+mappings.  They supposed to be used with SDL2 Game Controller functionality.")
+      (license license:zlib))))
+
 (define-public guile-sdl
   (package
     (name "guile-sdl")

base-commit: b3d0797d279b0aa48f6b652c149b7f974f3acc89
-- 
2.41.0


  reply	other threads:[~2023-10-20 22:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <dc4622a59b80bafe2790fd8f0ec354e56235f868.camel@pisemsky.com>
2023-10-17 20:04 ` [bug#66597] [PATCH] gnu: Add sdl2-gamecontrollerdb Liliana Marie Prikler
2023-10-20 22:45   ` Evgeny Pisemsky [this message]
2023-10-21 20:05     ` Liliana Marie Prikler
2023-10-27 14:35       ` bug#66597: " Liliana Marie Prikler
2023-10-17 18:19 [bug#66597] " Evgeny Pisemsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87edhoq5f3.fsf@pisemsky.com \
    --to=evgeny@pisemsky.com \
    --cc=66597@debbugs.gnu.org \
    --cc=liliana.prikler@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.