diff options
author | Evandro Alves Rodrigues <evandrofisico@gmail.com> | 2010-08-03 02:33:41 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-08-11 01:53:00 -0500 |
commit | e389e347dbf9aa4997ac87a1c2c95d41b7b525d0 (patch) | |
tree | b0b3544f8d1b7fcb51c1f1297513e7469e11e5af /libraries/PyOpenGL/PyOpenGL.SlackBuild | |
parent | 0753bf962e4eeb3b33525a3dd62df9068cc846e1 (diff) | |
download | slackbuilds-e389e347dbf9aa4997ac87a1c2c95d41b7b525d0.tar.gz |
libraries/PyOpenGL: Added (Python binding to OpenGL)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/PyOpenGL/PyOpenGL.SlackBuild')
-rw-r--r-- | libraries/PyOpenGL/PyOpenGL.SlackBuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/libraries/PyOpenGL/PyOpenGL.SlackBuild b/libraries/PyOpenGL/PyOpenGL.SlackBuild new file mode 100644 index 0000000000..41a199268e --- /dev/null +++ b/libraries/PyOpenGL/PyOpenGL.SlackBuild @@ -0,0 +1,57 @@ +#!/bin/sh + +# Slackware build script for PyOpenGL +# Written by Evandro Alves Rodrigues + +PRGNAM=PyOpenGL +VERSION=${VERSION:-3.0.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +python setup.py install --root=$PKG + +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 \ + ChangeLog.txt PKG-INFO license.txt \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |