libraries/CEGUI: Updated for version 0.6.1

This commit is contained in:
Phil Warner 2010-05-11 22:23:18 +02:00 committed by David Somero
parent 1d4819ee8e
commit ddf8b13e92
2 changed files with 17 additions and 11 deletions

View file

@ -5,11 +5,11 @@
# Modified by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=CEGUI
VERSION=0.5.0
PKG_VERSION=${VERSION}b
VERSION=${VERSION:-0.6.1}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@ -19,6 +19,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
set -e
@ -27,10 +29,14 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$PKG_VERSION.tar.gz
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+rw,go-w .
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 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@ -42,16 +48,16 @@ make force_arch="$ARCH"
make install DESTDIR=$PKG
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp AUTHORS COPYING README ChangeLog TODO $PKG/usr/doc/$PRGNAM-$VERSION
cp AUTHORS COPYING README ChangeLog TODO TinyXML-License $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERSION-$ARCH-$BUILD$TAG.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz

View file

@ -1,8 +1,8 @@
PRGNAM="CEGUI"
VERSION="0.5.0"
VERSION="0.6.1"
HOMEPAGE="http://www.cegui.org.uk/wiki/index.php/Main_Page"
DOWNLOAD="http://downloads.sourceforge.net/crayzedsgui/CEGUI-0.5.0b.tar.gz"
MD5SUM="b42322a33c6a06eede76b15f75694a17"
DOWNLOAD="http://downloads.sourceforge.net/crayzedsgui/CEGUI-0.6.1.tar.gz"
MD5SUM="aee37f8532ecbdc0b87efbaebafdf148"
MAINTAINER="Phil Warner"
EMAIL="pc_warner@yahoo.com"
APPROVED="rworkman"
APPROVED="David Somero"