2008-03-07 02:23:16 +11:00
|
|
|
# Description: Python bindings for SDL.
|
|
|
|
# URL: http://pygame.org/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2008-03-07 02:23:16 +11:00
|
|
|
# Packager: Han Boetes, han at mijncomputer dot nl
|
2008-05-13 13:08:24 +10:00
|
|
|
# Depends on: numeric sdl_image sdl_mixer sdl_ttf
|
2007-02-13 08:40:55 +10:00
|
|
|
|
|
|
|
name=pygame
|
2012-04-06 18:05:18 +10:00
|
|
|
version=1.9.1
|
2008-03-30 18:41:26 +10:00
|
|
|
release=1
|
2012-04-06 18:05:18 +10:00
|
|
|
source=(http://www.pygame.org/ftp/$name-${version}release.tar.gz
|
|
|
|
pygame-1.9.1-config.patch)
|
2007-02-13 08:40:55 +10:00
|
|
|
|
|
|
|
build() {
|
2012-04-06 18:05:18 +10:00
|
|
|
cd $name-${version}release
|
|
|
|
|
2008-03-30 18:41:26 +10:00
|
|
|
export CFLAGS="$CFLAGS -fno-strict-aliasing"
|
2012-04-06 18:05:18 +10:00
|
|
|
patch -p1 -i $SRC/pygame-1.9.1-config.patch
|
|
|
|
|
2014-01-27 18:51:57 +11:00
|
|
|
/usr/bin/python config.py -auto
|
|
|
|
/usr/bin/python setup.py install --prefix=/usr --root $PKG
|
2012-04-06 18:05:18 +10:00
|
|
|
|
2008-03-30 18:41:26 +10:00
|
|
|
chmod a-x $PKG/usr/lib/python*/site-packages/pygame/*.so
|
2008-07-30 01:22:54 +10:00
|
|
|
find $PKG -name '*.h' -exec chmod 0644 {} \;
|
|
|
|
|
|
|
|
find $PKG \( \
|
|
|
|
-name 'pygame.ico' -o \
|
|
|
|
-name 'pygame_icon.*' -o \
|
|
|
|
-name 'freesansbold.ttf' \) -exec chmod 0644 {} \;
|
2007-02-13 08:40:55 +10:00
|
|
|
}
|