summaryrefslogtreecommitdiff
path: root/libraries/ffcall/ffcall.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ffcall/ffcall.SlackBuild')
-rw-r--r--libraries/ffcall/ffcall.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/libraries/ffcall/ffcall.SlackBuild b/libraries/ffcall/ffcall.SlackBuild
index 00bc83e867..49fac96eb0 100644
--- a/libraries/ffcall/ffcall.SlackBuild
+++ b/libraries/ffcall/ffcall.SlackBuild
@@ -24,12 +24,15 @@
# Modified by the SlackBuilds.org project
+# Bail out if we encounter an error
+set -e
+
PRGNAM=ffcall
VERSION=1.10
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-CWD=`pwd`
+CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -40,16 +43,12 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
-# Bail out if we encounter an error
-set -e
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar -zxvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -68,9 +67,7 @@ make DESTDIR=$PKG install
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
-if [ -d $PKG/usr/man ]; then
- gzip -9 $PKG/usr/man/man?/*
-fi
+gzip -9 $PKG/usr/man/man?/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild