1 # Contributor: Procyon <procyon._HIDDEN_@gmail.com>
2 # Original Maintainer: Allan McRae
4 pkgname=sdl-nokeyboardgrab
7 pkgdesc="The sdl library, libsdl, patched to prevent keyboard grab"
9 url="http://www.libsdl.org"
11 depends=('glibc' 'libxext' 'libxrender' 'libx11')
12 provides=('sdl=1.2.14')
14 makedepends=('alsa-lib' 'esound' 'mesa')
16 source=(http://www.libsdl.org/release/SDL-${pkgver}.tar.gz
17 sdl-1.2.14-fix-mouse-clicking.patch
18 sdl-1.2.14-joystick-crash.diff)
19 md5sums=('e52086d1b508fa0b76c52ee30b55bec4'
20 '04d8c179f125e04bcd4c9d60e013c2d7'
21 '9d8890b3817736a5d365f7497f096634')
24 cd ${srcdir}/SDL-${pkgver}
25 #THIS IS THE KEYBOARD UNGRAB PATCH
26 sed -i '/XGrabKeyboard/{s_^_//_;n;s_^_//_}' src/video/x11/SDL_x11wm.c
27 patch -Np1 -i $srcdir/sdl-1.2.14-fix-mouse-clicking.patch
28 patch -Np1 -i $srcdir/sdl-1.2.14-joystick-crash.diff
29 ./configure --prefix=/usr --disable-nasm --enable-alsa --enable-esd \
30 --with-x --disable-rpath
35 cd ${srcdir}/SDL-${pkgver}
36 make DESTDIR=${pkgdir} install