diff options
author | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 22:21:43 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:21:43 +0200 |
commit | ec1c3f8b6d4d48463abff1f160b1ce7497dd6491 (patch) | |
tree | 8c2a996131cf8dcf54692b59e052b4dad08af7bb /desktop/crystal/crystal.SlackBuild | |
parent | 48105c8f71570130176f2311d21b5a503886a748 (diff) | |
download | slackbuilds-ec1c3f8b6d4d48463abff1f160b1ce7497dd6491.tar.gz |
desktop/crystal: Updated for version 1.0.6
Diffstat (limited to 'desktop/crystal/crystal.SlackBuild')
-rw-r--r-- | desktop/crystal/crystal.SlackBuild | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/desktop/crystal/crystal.SlackBuild b/desktop/crystal/crystal.SlackBuild index 6a64157b51..1f01f430be 100644 --- a/desktop/crystal/crystal.SlackBuild +++ b/desktop/crystal/crystal.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # SlackBuild script for crystal (A Native KDE 3.x Window decoration) -# Written by Michiel van Wessem (BP{k}) <michiel@slackbuilds.org> +# Copyright 2007-2008 Michiel van Wessem, Manchester, United Kingdom # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -23,26 +23,25 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -set -e - PRGNAM=crystal -VERSION=1.0.5 +VERSION=1.0.6 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCFILES="AUTHORS COPYING INSTALL README" - if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" fi +set -e # Exit on most errors + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT rm -rf $TMP/$PRGNAM-$VERSION @@ -50,7 +49,11 @@ cd $TMP tar -xjvf $CWD/*-$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . -chmod -R u+w,go+r-w,a-s . +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" \ @@ -64,7 +67,7 @@ make make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir $PKG/install |