Package Details: sdl2-git 2.26.0.r1.gea8f8b6dc-1

Git Clone URL: (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:
Licenses: MIT
Conflicts: sdl2, sdl2-minimal-hg
Provides: sdl2
Submitter: Solskogen
Maintainer: Solskogen
Last Packager: Solskogen
Votes: 2
Popularity: 0.000086
First Submitted: 2021-02-12 08:08 (UTC)
Last Updated: 2022-11-22 12:35 (UTC)

Required by (1123)

Sources (1)

Latest Comments

1 2 Next › Last »

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
@@ -1,18 +1,21 @@
 # Maintainer: Christer Solskogen <>

 pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)"
 arch=('x86_64' 'aarch64' 'armv7h')
-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')
 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/" \

 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.

Solskogen commented on 2021-08-13 12:41 (UTC)

How about now?

abouvier commented on 2021-08-13 12:32 (UTC) (edited on 2021-08-13 12:32 (UTC) by abouvier)

No! Keep the tag if it is available, but without the useless prefix :p

And you cannot change the versioning scheme without incrementing the epoch variable.

Solskogen commented on 2021-08-13 12:24 (UTC)

Does this work better?

abouvier commented on 2021-08-13 12:16 (UTC) (edited on 2021-08-13 12:16 (UTC) by abouvier)

Yes but it should be removed anyway:

This package currently cannot be accepted by another package having depends=('sdl2>=2.0.16').

Solskogen commented on 2021-08-13 07:03 (UTC)

the release-part comes automatically. Fixed the provides.

abouvier commented on 2021-08-12 11:39 (UTC)

You should remove the release. prefix in the version string, and use provides=("sdl2=$pkgver").