summaryrefslogtreecommitdiff
path: root/pygame/Pkgfile
blob: 16daa2eb7624c05ab8f23cecf97d4240fd78e13c (plain)
    1 # Description: Python bindings for SDL.
    2 # URL: http://pygame.org/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Packager: Han Boetes, han at mijncomputer dot nl
    5 # Depends on: numeric sdl_image sdl_mixer sdl_ttf
    6 
    7 name=pygame
    8 version=1.9.1
    9 release=1
   10 source=(http://www.pygame.org/ftp/$name-${version}release.tar.gz
   11 	pygame-1.9.1-config.patch)
   12 
   13 build() {
   14 	cd $name-${version}release
   15 
   16 	export CFLAGS="$CFLAGS -fno-strict-aliasing"
   17 	patch -p1 -i $SRC/pygame-1.9.1-config.patch
   18 
   19 	/usr/bin/python config.py -auto
   20 	/usr/bin/python setup.py install --prefix=/usr --root $PKG
   21 
   22 	chmod a-x $PKG/usr/lib/python*/site-packages/pygame/*.so
   23 	find $PKG -name '*.h' -exec chmod 0644 {} \;
   24 
   25 	find $PKG \( \
   26 		-name 'pygame.ico' -o \
   27 		-name 'pygame_icon.*' -o \
   28 		-name 'freesansbold.ttf' \) -exec chmod 0644 {} \;
   29 }

Generated by cgit