system/sudosh2: Fixed the install routine.

Thanks to spaceman

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2015-07-20 13:27:48 +02:00 committed by Willy Sudiarto Raharjo
parent deb76d5a0d
commit 48407e31dd

View file

@ -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