aboutsummaryrefslogtreecommitdiff
path: root/misc/dwdiff/dwdiff.SlackBuild
diff options
context:
space:
mode:
authorslakmagik <slakmagik@gmail.com>2011-01-28 23:14:26 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-03-01 09:26:04 -0600
commit0af14e85aec6c61f2468d5109246827bdb3f25be (patch)
tree4bb599b5bdf3d5b18596f3cbdd6c6aee0523361e /misc/dwdiff/dwdiff.SlackBuild
parent526942b9da975aeb244037edfd0743b9a2c7ef31 (diff)
misc/dwdiff: Miscellaneous cleanups
Note in the README that the optional icu4c lib is available from SBo (which it might not be, being optional). Move the NLS setting to the rest of the settings so people who hand-edit don't have to look for magic settings. Remove useless braces. Tweak strip boilerplate. Simplify man page handling. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'misc/dwdiff/dwdiff.SlackBuild')
-rw-r--r--misc/dwdiff/dwdiff.SlackBuild21
1 files changed, 9 insertions, 12 deletions
diff --git a/misc/dwdiff/dwdiff.SlackBuild b/misc/dwdiff/dwdiff.SlackBuild
index 140c7eb71a9fb..fb797415d6811 100644
--- a/misc/dwdiff/dwdiff.SlackBuild
+++ b/misc/dwdiff/dwdiff.SlackBuild
@@ -41,6 +41,7 @@ if [ -z "$UNICODE" ]; then
else
UNICODE=with
fi
+NLS="${NLS:-""}"
set -e
@@ -61,26 +62,22 @@ find . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --${UNICODE}-unicode \
+ --$UNICODE-unicode \
--prefix=/usr \
--mandir='$(prefix)/man'
-make LINGUAS="${NLS:=""}" prefix=/usr
-make LINGUAS="${NLS:=""}" prefix=$PKG/usr install
+make LINGUAS="$NLS" prefix=/usr
+make LINGUAS="$NLS" prefix=$PKG/usr install
+
+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/usr/man -type f -exec gzip -9 {} \;
mv $PKG/usr/share/doc $PKG/usr
if [ -z "$NLS" ]; then # share/ will be empty
rmdir $PKG/usr/share
fi
-
-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/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
-
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install