summaryrefslogtreecommitdiffstats
path: root/audio/rubberband/rubberband.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/rubberband/rubberband.SlackBuild')
-rw-r--r--audio/rubberband/rubberband.SlackBuild21
1 files changed, 17 insertions, 4 deletions
diff --git a/audio/rubberband/rubberband.SlackBuild b/audio/rubberband/rubberband.SlackBuild
index 833407b526..3861dcc57b 100644
--- a/audio/rubberband/rubberband.SlackBuild
+++ b/audio/rubberband/rubberband.SlackBuild
@@ -4,6 +4,14 @@
# Written by Luis Henrique <lmello.009@gmail.com>
+# Modified by B. Watson <yalhcru@gmail.com>
+# 20140915 bkw:
+# - took over maintenance
+# - get rid of static lib
+# - use sed instead of a diff for $LIBDIRSUFFIX
+# - fix libdir in .pc files also
+# - add man page
+
PRGNAM=rubberband
VERSION=${VERSION:-1.8.1}
BUILD=${BUILD:-2}
@@ -52,7 +60,7 @@ find -L . \
-exec chmod 644 {} \;
# Fixup libdir on x86_64
-[ "$ARCH" = "x86_64" ] && patch -p1 < $CWD/libdir_x86_64.diff
+sed -i "s,\<lib\>,lib$LIBDIRSUFFIX,g" Makefile.in *.pc.in
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -64,13 +72,18 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+# We don't need the static lib
+rm -f $PKG/usr/lib$LIBDIRSUFFIX/*.a
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# man page borrowed from Debian
+mkdir -p $PKG/usr/man/man1
+gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- CHANGELOG COPYING README.txt \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGELOG COPYING README.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install