summaryrefslogtreecommitdiff
path: root/desktop/root-tail/root-tail.SlackBuild
diff options
context:
space:
mode:
authorslakmagik <slakmagik@gmail.com>2011-01-28 23:01:08 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-03-01 09:17:05 -0600
commit2d67f48cd3ec35f9e0ceafa468a6329584501042 (patch)
tree1c819fadda6bd71b8528472bd1302a490d3d6fe7 /desktop/root-tail/root-tail.SlackBuild
parent3d3bf81d7322beeb1d9878d2a7f5bb859a567a16 (diff)
downloadslackbuilds-2d67f48cd3ec35f9e0ceafa468a6329584501042.tar.gz
desktop/root-tail: Miscellaneous cleanups
Clarify a point in the README and make it more consistent. Remove unneeded comments. Tweak strip boilerplate. Fix old-style man page handling. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'desktop/root-tail/root-tail.SlackBuild')
-rw-r--r--desktop/root-tail/root-tail.SlackBuild15
1 files changed, 5 insertions, 10 deletions
diff --git a/desktop/root-tail/root-tail.SlackBuild b/desktop/root-tail/root-tail.SlackBuild
index 3aedad800f..90a4fb0cd1 100644
--- a/desktop/root-tail/root-tail.SlackBuild
+++ b/desktop/root-tail/root-tail.SlackBuild
@@ -9,12 +9,10 @@ VERSION=${VERSION:-1.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -56,16 +54,13 @@ find . \
xmkmf -a
make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS"
make DESTDIR=$PKG install
-# the makefile wants the man pages mode to be 444
-make DESTDIR=$PKG INSTMANFLAGS="-m 0644" install.man
-find $PKG | xargs file | grep -e "executable" -e "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
-( 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
-)
+# the makefile wants the man pages mode to be 444
+make DESTDIR=$PKG INSTMANFLAGS="-m 0644" install.man
+find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a [CR]* $PKG/usr/doc/$PRGNAM-$VERSION