@pix3l I've pushed a hotfix to unblock other users.
The best would be for this project to have a -DLIB_SUFFIX
like SDL2.
If you have more suggestions, feel free to open a PR.
Git Clone URL: | https://aur.archlinux.org/lib32-sdl12-compat-git.git (read-only, click to copy) |
---|---|
Package Base: | lib32-sdl12-compat-git |
Description: | An SDL-1.2 compatibility layer that uses SDL 2.0 behind the scenes. |
Upstream URL: | https://github.com/libsdl-org/sdl12-compat |
Keywords: | lib32-sdl lib32-sdl12 lib32-sdl12-compat |
Licenses: | zlib |
Conflicts: | lib32-sdl, lib32-sdl12-compat |
Provides: | lib32-sdl, lib32-sdl12-compat |
Submitter: | HurricanePootis |
Maintainer: | HurricanePootis |
Last Packager: | HurricanePootis |
Votes: | 4 |
Popularity: | 0.000000 |
First Submitted: | 2021-11-16 01:58 (UTC) |
Last Updated: | 2024-12-15 00:42 (UTC) |
@pix3l I've pushed a hotfix to unblock other users.
The best would be for this project to have a -DLIB_SUFFIX
like SDL2.
If you have more suggestions, feel free to open a PR.
@pix3l open a PR here: https://github.com/chaotic-aur/pkgbuild-lib32-sdl2_compat12-git I can then push your commit back to here.
It's still broken, because it contains headers, etc files, conflicting with base packages.
I've got much more better PKGBUILDs around that works nicely and can be installed side-by-side to main package. Not sure where to upload them, because aur removes newlines and other characters in comments...
@pix3l I've fixed this one too, thanks.
diff --git a/PKGBUILD b/PKGBUILD index 1d27c1e..7153c0b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ _pkgname=lib32-sdl2_compat12 pkgname=lib32-sdl2_compat12-git provides=('lib32-sdl=1.2.15') conflicts=('lib32-sdl') -pkgver=r271.c71d037 +pkgver=r285.646ecd7 pkgrel=1 pkgdesc="Provides a binary-compatible API for programs written against SDL 1.2, but it uses SDL 2.0 behind the scenes." url=https://github.com/libsdl-org/sdl12-compat.git @@ -29,7 +29,7 @@ build() { export LDFLAGS+=" -m32" export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' cd sdl12-compat - cmake . + cmake -DCMAKE_INSTALL_PREFIX=/usr . make }
@archi42 Yeah, it's usually the case for apps where using different version per architecture isn't recommended, but it's not the case here. Let's keep them separated...
@PedroHLC Also added you here. I am not entirely sure if a shared package build is the way to go. What's the official stance on that with the Arch maintainers?
The problem I see is: With the suggested change building the non-lib32 variant seems to also pull in everything that's needed to build the lib32 variant (unless the PKBUILD
is edited). At least I saw that behavior in the past [for other libs] and I didn't like it ;-)
I've added a few comments to the non-lib32.
But as those come from the same source, in the same commit, the correct approach would be to use one single PKGBUILD with "pkgbase" producing two pkgnames. It's easier than it looks. After that, you should request a merge in the non-lib32.
@shoober420: Thanks for the hint! I've updated the PKGBUILD accordingly.
@dreieck (in non-lib32 variant): I've updated the PKGBUILD. Sorry for the late action, it seems the notification got lost somewhere or I just forgot about it :(
I applied both changes to this package and the non-lib32 variant as well.
@archi42
Could you please update the source link to “git+ https://github.com/libsdl-org/sdl12-compat“
Thank you for this package. This is a really cool alternative when a program you like hasn’t updated to sdl2 yet. Freesynd and uhexen2 come to mind.
I highly recommend the UT469 patch to play UT.
Pinned Comments
archi42 commented on 2020-03-01 19:55 (UTC)
Careful: I tested this with UT99, and while a lot of the game works, some parts aren't exactly great (e.g. crash on Alt+Tab and mouse look is bounded by the mouse reaching the screen border; didn't try a lot of gaming due to that). You're probably better off with the full sdl 1.2!