Package Details: lib32-sdl2-git 2.0.12-1

Git Clone URL: https://aur.archlinux.org/lib32-sdl2-git.git (read-only, click to copy)
Package Base: lib32-sdl2-git
Description: A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2. 32 -bit)
Upstream URL: https://www.libsdl.org
Licenses: MIT
Conflicts: lib32-sdl2, lib32-sdl2-minimal-hg
Provides: lib32-sdl2
Submitter: shoober420
Maintainer: shoober420
Last Packager: shoober420
Votes: 1
Popularity: 0.000001
First Submitted: 2021-02-14 06:30 (UTC)
Last Updated: 2021-02-14 07:16 (UTC)

Required by (78)

Sources (1)

Latest Comments

bbb651 commented on 2023-01-25 14:27 (UTC)

Seems to be broken now that the main branch is SDL3

HurricanePootis commented on 2022-06-06 17:42 (UTC)

diff --git a/PKGBUILD b/PKGBUILD
index 2c42c93..c511cbd 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
 # Contributor: J0k3r <moebius282@gmail.com>

 pkgname=lib32-sdl2-git
-pkgver=2.0.12
+pkgver=2.0.22.r281.g61115aebd
 pkgrel=1
 pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2. 32 -bit)"
 arch=('x86_64')
@@ -40,6 +40,7 @@ optdepends=(
   'lib32-alsa-lib: ALSA audio driver'
   'lib32-libpulse: PulseAudio audio driver'
   'lib32-jack: JACK audio driver'
+  'lib32-pipewire: Pipewire audio driver'
 )
 provides=(lib32-sdl2)
 conflicts=(lib32-sdl2 lib32-sdl2-minimal-hg)
@@ -48,7 +49,9 @@ sha512sums=('SKIP')

 pkgver() {
   cd "SDL"
-  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+  #git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+  git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g'
+
 }

 prepare() {
@@ -69,6 +72,7 @@ build() {

   cmake -S SDL -B build \
       -DCMAKE_INSTALL_PREFIX=/usr \
+      -DCMAKE_INSTALL_LIBDIR=lib32 \
       -DLIB_SUFFIX=32 \
       -DSDL_STATIC=OFF \
       -DSDL_DLOPEN=ON \
@@ -93,8 +97,6 @@ package() {

   install -dm 755 "${pkgdir}"/usr/share/licenses
   ln -s sdl2 "${pkgdir}"/usr/share/licenses/lib32-sdl2
-
-  ln -s /usr/lib32/libSDL2-2.0.so ${pkgdir}/usr/lib32/libSDL2-2.0.so.0
 }

 # vim: ts=2 sw=2 et:

Harvie commented on 2021-11-08 16:15 (UTC)

[ 99%] Building C object CMakeFiles/SDL2.dir/src/sensor/dummy/SDL_dummysensor.c.o [100%] Linking C shared library libSDL2-2.0.so /usr/bin/ld: /tmp/ccNwS58R.ltrans3.ltrans.o: in function initialize_jumptable': <artificial>:(.text+0x3ef5): undefined reference toSDL_hid_init_REAL' /usr/bin/ld: <artificial>:(.text+0x3f01): undefined reference to SDL_hid_exit_REAL' /usr/bin/ld: <artificial>:(.text+0x3f0d): undefined reference toSDL_hid_enumerate_REAL' /usr/bin/ld: <artificial>:(.text+0x3f19): undefined reference to SDL_hid_free_enumeration_REAL' /usr/bin/ld: <artificial>:(.text+0x3f25): undefined reference toSDL_hid_write_REAL' /usr/bin/ld: <artificial>:(.text+0x3f31): undefined reference to SDL_hid_read_timeout_REAL' /usr/bin/ld: <artificial>:(.text+0x3f3d): undefined reference toSDL_hid_read_REAL' /usr/bin/ld: <artificial>:(.text+0x3f49): undefined reference to SDL_hid_set_nonblocking_REAL' /usr/bin/ld: <artificial>:(.text+0x3f55): undefined reference toSDL_hid_send_feature_report_REAL' /usr/bin/ld: <artificial>:(.text+0x3f61): undefined reference to SDL_hid_get_feature_report_REAL' /usr/bin/ld: <artificial>:(.text+0x3f6d): undefined reference toSDL_hid_close_REAL' /usr/bin/ld: <artificial>:(.text+0x3f79): undefined reference to SDL_hid_get_manufacturer_string_REAL' /usr/bin/ld: <artificial>:(.text+0x3f85): undefined reference toSDL_hid_get_product_string_REAL' /usr/bin/ld: <artificial>:(.text+0x3f91): undefined reference to SDL_hid_get_serial_number_string_REAL' /usr/bin/ld: <artificial>:(.text+0x3f9d): undefined reference toSDL_hid_get_indexed_string_REAL' collect2: error: ld returned 1 exit status

Gede commented on 2021-10-20 19:20 (UTC)

I believe this is creating a $pkgdir/usr/lib instead of a $pkgdir/usr/lib32. Is this correct?