diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2017-06-26 22:02:58 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-07-01 07:41:55 +0700 |
commit | 6f23984d71ae5dc294e06cf3ff8475be0ecc756d (patch) | |
tree | 714ac9b8fb0841a514a86f2672076e963710c69b /python/pygame/pygame.SlackBuild | |
parent | 0cc637e4a5ea1c0626766141a5ffbae571954490 (diff) |
python/pygame: Updated for version 1.9.3 + new maintainer.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'python/pygame/pygame.SlackBuild')
-rw-r--r-- | python/pygame/pygame.SlackBuild | 43 |
1 files changed, 30 insertions, 13 deletions
diff --git a/python/pygame/pygame.SlackBuild b/python/pygame/pygame.SlackBuild index e35ca2750d279..b02d58b98f10d 100644 --- a/python/pygame/pygame.SlackBuild +++ b/python/pygame/pygame.SlackBuild @@ -1,13 +1,35 @@ #!/bin/sh +# Slackware build script for pygame + ## Written by hollywoodb (hollywoodb@fastmail.fm) # Modified by the SlackBuilds.org project # Maintained by Bojan Popovic (bocke@slackware-srbija.org), 2014-2017 # Contribution by B.Watson (yalhcru@gmail.com), 11 apr. 2017. +# Copyright 2017 Dimitris Zlatanidis Orestiada, Greece +# +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pygame -VERSION=${VERSION:-1.9.1} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.9.3} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -23,8 +45,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -SRCVERSION=${VERSION}release - if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" elif [ "$ARCH" = "i686" ]; then @@ -39,19 +59,16 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 -rm -rf $PRGNAM-$SRCVERSION -tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.?z* || exit 1 -cd $PRGNAM-$SRCVERSION || exit 1 +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -# A patch borrowed from Arch community repo -patch -p1 < $CWD/pygame-v4l.patch + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Contributed by B.Watson (yalhcru@gmail.com). # Gets rid of the call to remove_old_files() during packaging. @@ -66,7 +83,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a WHATSNEW README.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a WHATSNEW readme.rst LGPL $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |