summaryrefslogtreecommitdiffstats
path: root/audio/alsaequal/alsaequal.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/alsaequal/alsaequal.SlackBuild')
-rw-r--r--audio/alsaequal/alsaequal.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/audio/alsaequal/alsaequal.SlackBuild b/audio/alsaequal/alsaequal.SlackBuild
index bf9bbe0adf..bf2a26f67b 100644
--- a/audio/alsaequal/alsaequal.SlackBuild
+++ b/audio/alsaequal/alsaequal.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for alsaequal
-# Copyright 2010 David Woodfall <dave@dawoodfall.net>
+# Copyright 2011 David Woodfall <dave@dawoodfall.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=alsaequal
VERSION=${VERSION:-0.6}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -57,7 +57,7 @@ fi
set -e
rm -rf $PKG
-mkdir -p $TMP $PKG $OUTPUT
+mkdir -p $TMP $PKG/usr/lib${LIBDIRSUFFIX}/alsa-lib $OUTPUT
cd $TMP
rm -rf $PRGNAM
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
@@ -69,10 +69,11 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-make CFLAGS="$SLKCFLAGS" Q=
+# Fixes for x86_64
+sed "s/@LIBDIRSUFFIX@/$LIBDIRSUFFIX/g" $CWD/lib64fix.diff | patch -p1
-mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/alsa-lib
-cp -a libasound_module_*_equal.so $PKG/usr/lib${LIBDIRSUFFIX}/alsa-lib
+make CFLAGS="$SLKCFLAGS" Q=
+make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true