aboutsummaryrefslogtreecommitdiff
path: root/template.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'template.SlackBuild')
-rw-r--r--template.SlackBuild10
1 files changed, 3 insertions, 7 deletions
diff --git a/template.SlackBuild b/template.SlackBuild
index 5b2c9b5..51727f7 100644
--- a/template.SlackBuild
+++ b/template.SlackBuild
@@ -96,17 +96,13 @@ make install DESTDIR=$PKG
# Strip binaries and libraries - this can be done with 'make install-strip'
# in many source trees, and that's usually acceptable if so, but if not,
# use this:
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null || true
-)
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Compress man pages
# If the man pages are installed to /usr/share/man instead, you'll need to either
# add the --mandir=/usr/man flag to configure or move them manually after the
-# make install process is run.
+# make install process is run. If there are no manpages, remove this...
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done