# Description: Python bindings for SDL.
# URL: http://pygame.org/
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: Han Boetes, han at mijncomputer dot nl
# Depends on: numeric sdl_image sdl_mixer sdl_ttf

name=pygame
version=1.8.1
release=1
source=(http://www.pygame.org/ftp/pygame-${version}release.tar.gz)

build() {
	cd pygame-${version}release
	export CFLAGS="$CFLAGS -fno-strict-aliasing"
	python config.py
	python setup.py install --prefix=/usr --root $PKG
	chmod a-x $PKG/usr/lib/python*/site-packages/pygame/*.so
	find $PKG -name '*.h' -exec chmod 0644 {} \;

	find $PKG \( \
		-name 'pygame.ico' -o \
		-name 'pygame_icon.*' -o \
		-name 'freesansbold.ttf' \) -exec chmod 0644 {} \;
}

