From c506815b271c8a87b9a766bbe80888c2ad0b8ab7 Mon Sep 17 00:00:00 2001 From: Bojan Popovic Date: Wed, 12 Apr 2017 15:26:16 +0700 Subject: python/pygame: Update script. Signed-off-by: Willy Sudiarto Raharjo --- python/pygame/pygame.SlackBuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/pygame/pygame.SlackBuild b/python/pygame/pygame.SlackBuild index 9267ec0cdb..e35ca2750d 100644 --- a/python/pygame/pygame.SlackBuild +++ b/python/pygame/pygame.SlackBuild @@ -2,11 +2,12 @@ ## Written by hollywoodb (hollywoodb@fastmail.fm) # Modified by the SlackBuilds.org project -# Modified by Bojan Popovic (bocke@slackware-srbija.org), 2014. +# Maintained by Bojan Popovic (bocke@slackware-srbija.org), 2014-2017 +# Contribution by B.Watson (yalhcru@gmail.com), 11 apr. 2017. PRGNAM=pygame VERSION=${VERSION:-1.9.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -52,6 +53,11 @@ find -L . \ # A patch borrowed from Arch community repo patch -p1 < $CWD/pygame-v4l.patch +# Contributed by B.Watson (yalhcru@gmail.com). +# Gets rid of the call to remove_old_files() during packaging. +# TLDR: Stops packaging scripts from messing with a local PyGame install. +sed -i '/^if "install"/,$d' setup.py + python -u config.py CFLAGS="$SLKCFLAGS" \ python setup.py install --root=$PKG -- cgit v1.2.3