summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBojan Popovic <bocke@slackware-srbija.org>2017-04-12 15:26:16 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-04-13 07:23:40 +0700
commitc506815b271c8a87b9a766bbe80888c2ad0b8ab7 (patch)
tree2375d50225ec849067465c401e04c481c8d00361
parentc0c413bae5e69a3921ff000655bc23d52e23a312 (diff)
downloadslackbuilds-c506815b271c8a87b9a766bbe80888c2ad0b8ab7.tar.gz
python/pygame: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/pygame/pygame.SlackBuild10
1 files changed, 8 insertions, 2 deletions
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