diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/dwdiff/README | 3 | ||||
-rw-r--r-- | misc/dwdiff/dwdiff.SlackBuild | 21 |
2 files changed, 11 insertions, 13 deletions
diff --git a/misc/dwdiff/README b/misc/dwdiff/README index 74cef98a63..17c4433461 100644 --- a/misc/dwdiff/README +++ b/misc/dwdiff/README @@ -16,4 +16,5 @@ If you wish to have nl manpages and/or de, fr, nl, ru localization pass 'NLS="de fr nl ru"' (or whichever of them is wanted) to the SlackBuild. If you wish to enable the handling of Unicode text, install the icu4c -library and pass "UNICODE=yes" to the SlackBuild. +library (also available from SlackBuilds.org) and pass "UNICODE=yes" to +the SlackBuild. diff --git a/misc/dwdiff/dwdiff.SlackBuild b/misc/dwdiff/dwdiff.SlackBuild index 140c7eb71a..fb797415d6 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 |