diff options
Diffstat (limited to 'misc/dwdiff/dwdiff.SlackBuild')
-rw-r--r-- | misc/dwdiff/dwdiff.SlackBuild | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/misc/dwdiff/dwdiff.SlackBuild b/misc/dwdiff/dwdiff.SlackBuild index 140c7eb71a9f..fb797415d681 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 |