For openSUSE Leap 15.6 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:khnazile:libSDL12-compat/openSUSE_Leap_15.6/home:khnazile:libSDL12-compat.repo
zypper refresh
zypper install SDL2
For openSUSE Leap 15.5 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:khnazile:libSDL12-compat/openSUSE_Leap_15.5/home:khnazile:libSDL12-compat.repo
zypper refresh
zypper install SDL2
For openSUSE Leap 15.4 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:khnazile:libSDL12-compat/openSUSE_Leap_15.4/home:khnazile:libSDL12-compat.repo
zypper refresh
zypper install SDL2