summaryrefslogtreecommitdiff
path: root/libraries/libsamplerate/libsamplerate.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libsamplerate/libsamplerate.SlackBuild')
-rw-r--r--libraries/libsamplerate/libsamplerate.SlackBuild26
1 files changed, 14 insertions, 12 deletions
diff --git a/libraries/libsamplerate/libsamplerate.SlackBuild b/libraries/libsamplerate/libsamplerate.SlackBuild
index 0fd563a47c..4cb994478a 100644
--- a/libraries/libsamplerate/libsamplerate.SlackBuild
+++ b/libraries/libsamplerate/libsamplerate.SlackBuild
@@ -2,14 +2,14 @@
# Slackware build script for libsamplerate 0.1.2
# Written by paul wisehart wise@lupulin.net
-
-# Modified by the SlackBuild project.
+# Modified by Robby Workman <rworkman@slackbuilds.org>
PRGNAM=libsamplerate
VERSION=0.1.2
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -21,25 +21,27 @@ 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
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvzf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --disable-static \
- --localstatedir=/var || exit 1
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-static \
+ --localstatedir=/var
-make DESTDIR=$PKG || 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