summaryrefslogtreecommitdiff
path: root/libraries/libsamplerate
diff options
context:
space:
mode:
authorPaul Wisehart <wise@lupulin.net>2010-05-11 19:45:19 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-11 19:45:19 +0200
commit70977bd947b134faf8ce2c3d7c2aad8d1bb09838 (patch)
tree698d03308a11d3b5680d1e85eb26426d8f21d65a /libraries/libsamplerate
parent8ff07cbaf68e9ce8638bcfb0ca70ccf50dbbc490 (diff)
downloadslackbuilds-70977bd947b134faf8ce2c3d7c2aad8d1bb09838.tar.gz
libraries/libsamplerate: Updated for version 0.1.2
Diffstat (limited to 'libraries/libsamplerate')
-rw-r--r--libraries/libsamplerate/README4
-rw-r--r--libraries/libsamplerate/libsamplerate.SlackBuild26
-rw-r--r--libraries/libsamplerate/libsamplerate.info3
-rw-r--r--libraries/libsamplerate/slack-desc8
4 files changed, 23 insertions, 18 deletions
diff --git a/libraries/libsamplerate/README b/libraries/libsamplerate/README
index 8ca70dad82..91c5ba017a 100644
--- a/libraries/libsamplerate/README
+++ b/libraries/libsamplerate/README
@@ -1,5 +1,3 @@
-Author : Erik de Castro Lopo
-
Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter
for audio. One example of where such a thing would be useful is
converting audio from the CD sample rate of 44.1kHz to the 48kHz
@@ -17,5 +15,3 @@ off against computation cost. The current best converter provides
a signal-to-noise ratio of 97dB with -3dB passband extending from
DC to 96% of the theoretical best bandwidth for a given pair of
input and output sample rates.
-
-
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
diff --git a/libraries/libsamplerate/libsamplerate.info b/libraries/libsamplerate/libsamplerate.info
index be0af8aead..a9ebe0b847 100644
--- a/libraries/libsamplerate/libsamplerate.info
+++ b/libraries/libsamplerate/libsamplerate.info
@@ -5,5 +5,4 @@ DOWNLOAD="http://www.mega-nerd.com/SRC/libsamplerate-0.1.2.tar.gz"
MD5SUM="06861c2c6b8e5273c9b80cf736b9fd0e"
MAINTAINER="paul wisehart"
EMAIL="wise@lupulin.net"
-APPROVED="BP{k}"
-
+APPROVED="BP{k},rworkman"
diff --git a/libraries/libsamplerate/slack-desc b/libraries/libsamplerate/slack-desc
index 7fd67d5c98..929687208a 100644
--- a/libraries/libsamplerate/slack-desc
+++ b/libraries/libsamplerate/slack-desc
@@ -1,3 +1,11 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
libsamplerate: libsamplerate (Sample Rate Converter for audio)
libsamplerate:
libsamplerate: Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter