aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-04-05 10:35:47 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-04-05 10:36:01 +0700
commitf9a2de537cc8c07ffb1e0734d3e36906113a5aef (patch)
treeb346f274bc1c58438cf2a807b2cc0441a3fd9c84
parent1dbe44da358a491843a234433bd1ed9662e4d4c7 (diff)
audio/spandsp: Specify OUTPUT variable.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--audio/spandsp/spandsp.SlackBuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/audio/spandsp/spandsp.SlackBuild b/audio/spandsp/spandsp.SlackBuild
index f044b061de4a4..fff5c41b59712 100644
--- a/audio/spandsp/spandsp.SlackBuild
+++ b/audio/spandsp/spandsp.SlackBuild
@@ -58,12 +58,16 @@ fi
set -eu
rm -rf $PKG
-mkdir -p $TMP $PKG
+mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION$SUBVERSION.tar.gz
chown -R root:root $PRGNAM-$VERSION
-chmod -R u+w,go+r-w,a-s $PRGNAM-$VERSION
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cd $PRGNAM-$VERSION
CXXFLAGS="$SLKCFLAGS" \
@@ -78,8 +82,7 @@ make
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING ChangeLog DueDiligence INSTALL NEWS README README.testdata \
+cp -a AUTHORS COPYING ChangeLog DueDiligence INSTALL NEWS README README.testdata \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild