summaryrefslogtreecommitdiff
path: root/system/sudosh2
diff options
context:
space:
mode:
Diffstat (limited to 'system/sudosh2')
-rw-r--r--system/sudosh2/sudosh2.SlackBuild11
1 files changed, 4 insertions, 7 deletions
diff --git a/system/sudosh2/sudosh2.SlackBuild b/system/sudosh2/sudosh2.SlackBuild
index 78cca2e01d..6035343615 100644
--- a/system/sudosh2/sudosh2.SlackBuild
+++ b/system/sudosh2/sudosh2.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=sudosh2
VERSION=${VERSION:-1.0.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -88,13 +88,10 @@ CXXFLAGS="$SLKCFLAGS" \
$do_record
make
-# make install will install sudosh.conf in the build system, use
-# make install-am to avoid this and manualy install the conf file.
-make install-am DESTDIR=$PKG
-install -m 0644 -D $TMP/$PRGNAM-$VERSION/src/sudosh.conf $PKG/etc/sudosh.conf.new
+make install-strip DESTDIR=$PKG
-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
+# manually install the conf file
+install -m 0644 -D $TMP/$PRGNAM-$VERSION/src/sudosh.conf $PKG/etc/sudosh.conf.new
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done