summaryrefslogtreecommitdiffstats
path: root/development/perf/perf.SlackBuild
diff options
context:
space:
mode:
author David Spencer2016-03-28 12:51:22 +0200
committer David Spencer2016-03-31 13:48:02 +0200
commit344fc208eaa97d7f3860f27284a0efe6f17ddc78 (patch)
treeaf3a66c4728ca156e33f67b10fd7d2303de80283 /development/perf/perf.SlackBuild
parent53944da3fa972dafbcf2a29d29fcbecf6d2dfb82 (diff)
downloadslackbuilds-344fc208eaa97d7f3860f27284a0efe6f17ddc78.tar.gz
development/perf: Updated for version 4.4.6.
Fix build failure with optional deps. Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/perf/perf.SlackBuild')
-rw-r--r--development/perf/perf.SlackBuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/development/perf/perf.SlackBuild b/development/perf/perf.SlackBuild
index 927c235c75..16ce1bcc0c 100644
--- a/development/perf/perf.SlackBuild
+++ b/development/perf/perf.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=perf
-VERSION=${VERSION:-4.4}
+VERSION=${VERSION:-4.4.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -76,7 +76,8 @@ rm -f $SRCDIR/.config-detected
# Fixup paths (sysconfdir= and mandir= don't work)
mv $PKG/usr/share/man $PKG/usr/man
-rmdir $PKG/usr/share
+# if perf is built with optional deps, $PKG/usr/share/perf-core exists
+rmdir --ignore-fail-on-non-empty $PKG/usr/share
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true