diff options
author | Willy Sudiarto Raharjo <willysr@slackware-id.org> | 2013-11-06 06:45:08 +0700 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-05 20:11:22 -0600 |
commit | 589eebbf1e3c89d932e408506a1f08a41c49d2b5 (patch) | |
tree | 63be26c1a9d5e38e735b6cd00220b9ada6cebbf7 /academic/tilem2/tilem2.SlackBuild | |
parent | 4d2c1b8470157bcdca26801c4e59ca455c41d6d8 (diff) |
academic/tilem2: Script cleanup
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'academic/tilem2/tilem2.SlackBuild')
-rw-r--r-- | academic/tilem2/tilem2.SlackBuild | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/academic/tilem2/tilem2.SlackBuild b/academic/tilem2/tilem2.SlackBuild index 5650d96dffc0..8d2deda08f93 100644 --- a/academic/tilem2/tilem2.SlackBuild +++ b/academic/tilem2/tilem2.SlackBuild @@ -24,16 +24,14 @@ PRGNAM=tilem2 SRCNAM=tilem -VERSION=2.0 +VERSION=${VERSION:-2.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -57,7 +55,7 @@ else LIBDIRSUFFIX="" fi -set -e # Exit on most errors +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -66,10 +64,11 @@ rm -rf $SRCNAM-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2 cd $SRCNAM-$VERSION chown -R root:root . -find . \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ +find -L . \ + \( -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 {} \; + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # A few necessary patches # This adds -lm to the linker flags - comes from revision 661 |