aboutsummaryrefslogtreecommitdiff
path: root/audio/rubberband/rubberband.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2014-09-16 07:43:26 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-09-16 07:43:26 +0700
commit2363863b9bc0c598efa325452aeead8015800f5b (patch)
tree5ad974d9475cd749ba6c30547b2a701057a6ee03 /audio/rubberband/rubberband.SlackBuild
parentb56bb7759ed5bcb521235ab7d9021e6c36d0bb06 (diff)
audio/rubberband: New maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 833407b5260e..3861dcc57b31 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