1 # Maintainer: dobo <dobo90_at_gmail.com>
6 pkgdesc='A wrapper for SDL which lets you force fullscreen games to minimize.'
8 url=http://jspenguin.org:81/software/sdlhack/
11 [ ${CARCH} = x86_64 ] && depends[0]=lib32-glibc
13 [ ${CARCH} = x86_64 ] && makedepends+=(gcc-multilib)
14 source=(http://jspenguin.org:81/software/sdlhack/${pkgname}-${pkgver}.tar.gz)
15 md5sums=(3f397e319ecc69096b1dee38041ca42f)
18 cd ${srcdir}/${pkgname}-${pkgver}
20 CFLAGS="${CFLAGS} $(sdl-config --cflags) -shared -fPIC -O2 -ldl -Wall"
22 gcc -m32 ${CFLAGS} libsdlhack.c -o libsdlhack-i386.so
23 if [ ${CARCH} = x86_64 ]; then gcc -m64 ${CFLAGS} libsdlhack.c -o libsdlhack-x86_64.so; fi
27 cd ${srcdir}/${pkgname}-${pkgver}
29 if [ ${CARCH} = i686 ]; then
30 install -D -m 755 libsdlhack-i386.so ${pkgdir}/usr/lib/libsdlhack.so
32 install -D -m 755 libsdlhack-i386.so ${pkgdir}/usr/lib32/libsdlhack.so
33 install -D -m 755 libsdlhack-x86_64.so ${pkgdir}/usr/lib/libsdlhack.so
36 install -D -m 755 sdlhack ${pkgdir}/usr/bin/sdlhack
37 install -D -m 644 README ${pkgdir}/usr/share/doc/${pkgname}/README