diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2015-07-20 13:27:48 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-07-25 11:22:25 +0700 |
commit | 48407e31dd1055806b259a27748b22ba15c9f13c (patch) | |
tree | f87ff48d8beaa7ebf88f21dc2779b28613168b7f /system/sudosh2/sudosh2.SlackBuild | |
parent | deb76d5a0dea0fb7dcde9ec78aac6734ec892193 (diff) |
system/sudosh2: Fixed the install routine.
Thanks to spaceman
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/sudosh2/sudosh2.SlackBuild')
-rw-r--r-- | system/sudosh2/sudosh2.SlackBuild | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/system/sudosh2/sudosh2.SlackBuild b/system/sudosh2/sudosh2.SlackBuild index 78cca2e01d1e0..6035343615a42 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 |