mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
libraries/pygame: Updated for version 1.7.1
This commit is contained in:
parent
0d19809d8b
commit
d345a1ca7a
4 changed files with 17 additions and 12 deletions
|
@ -3,4 +3,3 @@ Pygame is a set of Python modules designed for writing games.
|
|||
It is written on top of the excellent SDL library. This allows you to create
|
||||
fully featured games and multimedia programs in the python language. Pygame
|
||||
is highly portable and runs on nearly every platform and operating system.
|
||||
|
||||
|
|
|
@ -1,24 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
## Written by hollywoodb (hollywoodb@fastmail.fm)
|
||||
|
||||
# Verify script is being run by root user.
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "This script must be run as root!"
|
||||
exit
|
||||
fi
|
||||
# Modified by the SlackBuilds.org project
|
||||
|
||||
NAME=pygame
|
||||
VERSION=1.7.1
|
||||
SRCVERSION=${VERSION}release
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
CWD=`pwd`
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$NAME
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
SRCVERSION=${VERSION}release
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
|
@ -28,6 +25,7 @@ fi
|
|||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP || exit 1
|
||||
rm -rf $NAME-$SRCVERSION
|
||||
tar -xzvf $CWD/$NAME-$SRCVERSION.tar.gz || exit 1
|
||||
cd $NAME-$SRCVERSION || exit 1
|
||||
chown -R root:root .
|
||||
|
@ -52,7 +50,7 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
|||
# Let's extract the installable tarball now into $PKG
|
||||
# Since we're in the right place, strip everything and build the package
|
||||
cd $PKG
|
||||
tar -xzf $TMP/$NAME-$SRCVERSION/dist/$NAME-$SRCVERSION.linux-i686.tar.gz || exit 1
|
||||
tar xzf $TMP/$NAME-$SRCVERSION/dist/$NAME-$SRCVERSION.linux-i686.tar.gz || exit 1
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
|
|
|
@ -5,4 +5,4 @@ DOWNLOAD="http://www.pygame.org/ftp/pygame-1.7.1release.tar.gz"
|
|||
MD5SUM="05d86d1af446f79411359400951053b7"
|
||||
MAINTAINER="hollywoodb"
|
||||
EMAIL="hollywoodb@fastmail.fm"
|
||||
APPROVED="robw810"
|
||||
APPROVED="rworkman"
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
pygame: pygame (a set of Python modules designed for writing games)
|
||||
pygame:
|
||||
pygame: pygame is written on top of the excellent SDL library. This allows you
|
||||
|
|
Loading…
Reference in a new issue