Package Details: sdl2-git prerelease.2.29.2.r332.gdd6c66391-1

Git Clone URL: https://aur.archlinux.org/sdl2-git.git (read-only, click to copy)
Package Base: sdl2-git
Description: A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)
Upstream URL: https://www.libsdl.org
Licenses: MIT
Conflicts: sdl2, sdl2-minimal-hg
Provides: sdl2
Submitter: Solskogen
Maintainer: Solskogen
Last Packager: Solskogen
Votes: 2
Popularity: 0.000000
First Submitted: 2021-02-12 08:08 (UTC)
Last Updated: 2024-08-15 18:22 (UTC)

Dependencies (30)

Required by (1294)

Sources (1)

Latest Comments

1 2 Next › Last »

JL2210 commented on 2024-09-07 09:46 (UTC)

Doesn't SDL2 use the 'Zlib' license? https://github.com/libsdl-org/SDL/blob/SDL2/LICENSE.txt

FabioLolix commented on 2024-08-13 20:48 (UTC)

@xAsh in which step do you get that? Source donwload?


The sdl2-git package already put it's license in /usr/share/licenses/SDL2/LICENSE.txt.

Arch packaging require it in "${pkgdir}/usr/share/licenses/${pkgname}"

sdl2-git E: Uncommon license identifiers such as 'MIT' require license files below /usr/share/licenses/sdl2-git/ or switching to common license identifiers. Found 0/1 required license files.

xAsh commented on 2024-08-13 12:25 (UTC)

anyone else getting the "fatal: fetch-pack: invalid index-pack output" error?

Solskogen commented on 2023-06-30 06:02 (UTC)

The sdl2-git package already put it's license in /usr/share/licenses/SDL2/LICENSE.txt. Fixed the url now.

FabioLolix commented on 2023-06-29 20:56 (UTC)

  • A license like MIT which isn't part of the licenses package need to be installed in "${pkgdir}/usr/share/licenses/${pkgname}"
  • you can remove the unusued validpgpkeys=()

FabioLolix commented on 2023-06-29 20:46 (UTC)

Hello, would you like to add .git to source (as source=("git+https://github.com/libsdl-org/SDL.git#branch=SDL2"))? I'm using or maintaining several pkgbuilds where SDL is a submodule, it give a problem with shared sources:

==> Retrieving sources...
==> ERROR: /mnt/1TBWDBLACK/source/SDL is not a clone of https://github.com/libsdl-org/SDL
    Aborting...

Would be nice if everyone harmonized to add it (downloading from GitLab give a warning without)

Solskogen commented on 2022-11-22 12:36 (UTC)

Should be fixed now. But perhaps this package should be deleted as the next SDL2-git is really SDL3.

zfkerr commented on 2022-11-22 12:25 (UTC)

sed: can't read /tmp/makepkg/sdl2-git/pkg/sdl2-git/usr/lib/cmake/SDL2/SDL2Targets-noconfig.cmake: No such file or directory

HurricanePootis commented on 2022-06-05 17:44 (UTC)

diff --git a/PKGBUILD b/PKGBUILD
index daaf2d6..d6dc190 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,21 @@
 # Maintainer: Christer Solskogen <christer.solskogen@gmail.com>

 pkgname=sdl2-git
-pkgver=2.0.20.r19.g9a2bbd8ac
+pkgver=2.0.22.r271.g6b4bd5a75
 pkgrel=1
 pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)"
 arch=('x86_64' 'aarch64' 'armv7h')
 url="https://www.libsdl.org"
 license=('MIT')
-depends=('libgl' 'libibus' )
+depends=('glibc' 'libxext' 'libxrender' 'libx11' 'libgl' 'libxcursor' 'hidapi' 'libusb')
 makedepends=('alsa-lib' 'mesa' 'libpulse' 'libxrandr' 'libxinerama' 'wayland' 'libxkbcommon'
-             'wayland-protocols' 'ibus' 'fcitx' 'libxss' 'jack' 'git' )
+             'wayland-protocols' 'ibus' 'fcitx5' 'libxss' 'cmake' 'jack' 'ninja' 'pipewire'
+             'libdecor')
 optdepends=('alsa-lib: ALSA audio driver'
             'libpulse: PulseAudio audio driver'
-            'jack: JACK audio driver')
+            'jack: JACK audio driver'
+            'pipewire: PipeWire audio driver'
+            'libdecor: Wayland client decorations')
 source=("git+https://github.com/libsdl-org/SDL")
 provides=("sdl2=$pkgver")
 conflicts=(sdl2 sdl2-minimal-hg)
@@ -30,16 +33,19 @@ prepare() {

 build() {
    cd build
-   ../SDL/configure --prefix=/usr \
-           --disable-video-rpi \
-           --enable-video-kmsdrm
+   cmake "../SDL/" \
+   -D CMAKE_INSTALL_PREFIX=/usr \
+   -D SDL_STATIC=OFF \
+   -D SDL_DLOPEN=ON \
+   -D SDL_RPATH=OFF
    make
 }

 package() {
-   cd build
-   make install DESTDIR="$pkgdir"
-   install -Dm644 ../SDL/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-   chown -R root:root "$pkgdir"
-}
+  DESTDIR="${pkgdir}" cmake --install build

+  # For some reason, this isn't named correctly and we have to fix it to reflect the actual staticlib name.
+  sed -i "s/libSDL2\.a/libSDL2main.a/g" "$pkgdir"/usr/lib/cmake/SDL2/SDL2Targets-noconfig.cmake
+
+  install -Dm644 SDL/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

abouvier commented on 2021-08-13 12:45 (UTC)

Amazing, I couldn't have done better.