aboutsummaryrefslogtreecommitdiff
path: root/development/splint/splint.SlackBuild
diff options
context:
space:
mode:
authorMenno E. Duursma <druiloor@zonnet.nl>2010-05-11 22:22:46 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-11 22:22:46 +0200
commitf44e9d9541e28b6468c1779d78d10e32a474d021 (patch)
treeb0b0eb54fa0f58fe80bfb98511010e45d6e6eb22 /development/splint/splint.SlackBuild
parent467e2d2eed529b9060acc1897ef096c80aba9e95 (diff)
development/splint: Updated for version 3.1.2
Diffstat (limited to 'development/splint/splint.SlackBuild')
-rw-r--r--development/splint/splint.SlackBuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/development/splint/splint.SlackBuild b/development/splint/splint.SlackBuild
index 564f182b7695e..3721e257b0a01 100644
--- a/development/splint/splint.SlackBuild
+++ b/development/splint/splint.SlackBuild
@@ -5,7 +5,7 @@
# Modified by the SlackBuilds.org project
PRGNAM=splint
-VERSION=3.1.1
+VERSION=3.1.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -14,6 +14,9 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+# Exit immediately if a command exits with a non-zero status.
+set -e
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
@@ -24,8 +27,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xzvf $CWD/$PRGNAM-$VERSION.src.tgz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xzvf $CWD/$PRGNAM-$VERSION.src.tgz
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -37,12 +40,12 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
|| exit 1
-make || exit 1
-make install DESTDIR=$PKG || exit 1
+make
+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 "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . -type f | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . -type f | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man
@@ -58,6 +61,7 @@ cd html
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
cp *.htm *.html $PKG/usr/doc/$PRGNAM-$VERSION/html
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README.SBo
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc