updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sdl-nokeyboardgrab / PKGBUILD
blobd0dba26b30f9cd7ce3545e0d2ed26bff89082b3d
1 # Contributor: Procyon <procyon._HIDDEN_@gmail.com>
2 # Original Maintainer: Allan McRae
4 pkgname=sdl-nokeyboardgrab
5 pkgver=1.2.14
6 pkgrel=4
7 pkgdesc="The sdl library, libsdl, patched to prevent keyboard grab"
8 arch=('i686' 'x86_64')
9 url="http://www.libsdl.org"
10 license=('LGPL')
11 depends=('glibc' 'libxext' 'libxrender' 'libx11')
12 provides=('sdl=1.2.14')
13 conflicts=('sdl')
14 makedepends=('alsa-lib' 'esound' 'mesa')
15 options=('!libtool')
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')
23 build() {
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
31   make || return 1
34 package() {
35   cd ${srcdir}/SDL-${pkgver}
36   make DESTDIR=${pkgdir} install