From 48407e31dd1055806b259a27748b22ba15c9f13c Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Mon, 20 Jul 2015 13:27:48 +0200 Subject: system/sudosh2: Fixed the install routine. Thanks to spaceman Signed-off-by: Matteo Bernardini --- system/sudosh2/sudosh2.SlackBuild | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'system/sudosh2') 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 -- cgit v1.2.3